From: John Mandereau Date: Fri, 15 Aug 2008 13:00:12 +0000 (+0200) Subject: Add bin-clean target on popular demand X-Git-Tag: release/2.11.56-1~2^2~7 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7a067482e9c0ae5f7d60aeb857a7bf304e7e92dc;p=lilypond.git Add bin-clean target on popular demand 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. --- diff --git a/stepmake/stepmake/generic-targets.make b/stepmake/stepmake/generic-targets.make index 250eace2f8..0307404080 100644 --- a/stepmake/stepmake/generic-targets.make +++ b/stepmake/stepmake/generic-targets.make @@ -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\