X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/d7482997dd1ca71b70df43c15dd5956f435a1a7e..7136a6c7f094fa423c48ec319748c4fd7e1fa645:/Makefile diff --git a/Makefile b/Makefile index b82ba23..bfd14a5 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. @@ -53,7 +58,7 @@ SRC := ../ MODULES := main malloc ustring error help licence version misc tree234 MODULES += input keywords contents index style biblio -MODULES += bk_text bk_xhtml bk_whlp +MODULES += bk_text bk_xhtml bk_whlp bk_man MODULES += winhelp OBJECTS := $(addsuffix .o,$(MODULES))