]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add bin-clean target on popular demand
authorJohn Mandereau <john.mandereau@gmail.com>
Fri, 15 Aug 2008 13:00:12 +0000 (15:00 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Sat, 16 Aug 2008 16:06:21 +0000 (18:06 +0200)
This target cleans out/ directories except mf/out.

Motivation: people building the binary often need/want to clean the
generated binary, but don't want to rebuild fonts because it takes a
while.

stepmake/stepmake/generic-targets.make

index 250eace2f865cdb7deae0513fcde2ecf1f42db86..03074040805a8427b0abb87470e9708c37bb80ce 100644 (file)
@@ -1,5 +1,5 @@
-.PHONY : all clean config default dist doc exe help html lib TAGS\
-        po
+.PHONY : all clean bin-clean config default dist doc exe help\
+         html lib TAGS po
 
 all:    default
        $(LOOP)
@@ -11,6 +11,16 @@ clean: local-clean
        -rm -rf "./$(outdir)"
        $(LOOP)
 
+ifeq (,$(findstring metafont,$(STEPMAKE_TEMPLATES)))
+bin-clean: local-bin-clean
+       -rm -rf "./$(outdir)"
+       $(LOOP)
+else
+bin-clean:
+endif
+
+local-bin-clean: local-clean
+
 ifneq ($(strip $(depth)),.)
 dist:
        $(MAKE) -C $(depth) dist
@@ -48,6 +58,7 @@ help: generic-help local-help
        @echo -e "Generic targets:\n\
   all *       update everything except website documentation\n\
   clean *     remove all generated stuff in $(outdir)\n\
+  bin-clean * same as clean, except that mf/out is preserved\n\
   default     same as the empty target\n\
   exe         update all executables\n\
   help        this help\n\