summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2002-08-11 16:04:42 +0000
committerSimon Tatham <anakin@pobox.com>2002-08-11 16:04:42 +0000
commit621a10b40a76b5f7600e041c6293cc186e878fdc (patch)
tree07d9c53b4db5a5ff2f2fc5b14d90581b8e5eff1e /Makefile
parentcd0c8ee2f81d98fa842442b5874ae4ff38bfbe85 (diff)
downloadhalibut-621a10b40a76b5f7600e041c6293cc186e878fdc.zip
halibut-621a10b40a76b5f7600e041c6293cc186e878fdc.tar.gz
halibut-621a10b40a76b5f7600e041c6293cc186e878fdc.tar.bz2
halibut-621a10b40a76b5f7600e041c6293cc186e878fdc.tar.xz
Add `topclean' target to the top-level Makefile, to remove the
output from running Halibut on a test input file. [originally from svn r1833]
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b82ba23..35d2eef 100644
--- 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.