Add `topclean' target to the top-level Makefile, to remove the
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 11 Aug 2002 16:04:42 +0000 (16:04 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 11 Aug 2002 16:04:42 +0000 (16:04 +0000)
output from running Halibut on a test input file.

git-svn-id: svn://svn.tartarus.org/sgt/halibut@1833 cda61777-01e9-0310-a592-d414129be87e

Makefile

index b82ba23..35d2eef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,12 +15,17 @@ endif
 all:
        @test -d $(BUILDDIR) || mkdir $(BUILDDIR)
        @make -C $(BUILDDIR) -f ../Makefile REALBUILD=yes
-spotless:
+spotless: topclean
        @test -d $(BUILDDIR) || mkdir $(BUILDDIR)
        @make -C $(BUILDDIR) -f ../Makefile spotless REALBUILD=yes
-clean:
+clean: topclean
        @test -d $(BUILDDIR) || mkdir $(BUILDDIR)
        @make -C $(BUILDDIR) -f ../Makefile clean REALBUILD=yes
+topclean:
+       # Remove Halibut output files in the source directory (may
+       # have been created by running, for example, `build/halibut
+       # inputs/test.but').
+       rm -f *.html output.*
 else
 
 # The `real' makefile part.