From 224d022dc394129cbaefa784886ba7302610fa05 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 25 Jul 2026 07:34:04 -1000 Subject: Make the clean targets remove real test output --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a93710b..d4f3c91 100644 --- a/Makefile +++ b/Makefile @@ -152,9 +152,12 @@ $(DOC_PDF): $(BUILDDIR)/%.pdf : %.txt @mkdir -p $(BUILDDIR) a2x -f pdf -D $(BUILDDIR) $< -# Everything generated lives under build/, so cleaning is a single remove. +# Compiled output lives under build/; the test suite writes into tests/, so +# cleaning removes both. The tests descent is guarded because tests/Makefile +# includes git's config.mak.uname, which needs the submodule present. clean: $(RM) -r $(BUILDDIR) + @if test -e $(GITDIR)/config.mak.uname; then $(MAKE) -C tests clean; fi cleanall: clean @if test -e $(GITDIR)/Makefile; then $(MAKE) -C $(GITDIR) clean; fi -- cgit v2.8.0