]> git.donarmstrong.com Git - lilypond.git/commitdiff
Improve behavior of `make distclean'
authorPatrick McCarty <pnorcks@gmail.com>
Sun, 30 Aug 2009 22:52:53 +0000 (15:52 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Mon, 31 Aug 2009 08:24:14 +0000 (01:24 -0700)
This target is supposed to perform a `make clean', and then remove the
appropriate parts of configure output.

Thus, $(LOOP) should be removed, since configure output only appears in
the top-src-dir, and $(outdir) should be removed afterwards.

The other two changes are just nitpicks: the quotes are not needed, and
$(outdir) already expands to ./out, so the extra ./ is superfluous.

stepmake/stepmake/generic-targets.make
stepmake/stepmake/toplevel-targets.make

index b98eb8c8c354d19d9cb8238ff53df2a9d8931a85..eddf25a671ab84d01fa72f0d76bc0b7aeff16efa 100644 (file)
@@ -8,12 +8,12 @@ man:
        $(LOOP)
 
 clean: local-clean
-       -rm -rf "./$(outdir)"
+       -rm -rf $(outdir)
        $(LOOP)
 
 ifeq (,$(findstring metafont,$(STEPMAKE_TEMPLATES)))
 bin-clean: local-bin-clean
-       -rm -rf "./$(outdir)"
+       -rm -rf $(outdir)
        $(LOOP)
 else
 bin-clean:
@@ -27,7 +27,6 @@ dist:
 endif
 
 distclean: clean
-       $(LOOP)
        $(MAKE) local-distclean
 
 cvs-clean:
index 17f0c59245162777ac15bd25014bc5da35684104..1c590b0447d69d009cf1cddb62091b635518963c 100644 (file)
@@ -9,6 +9,7 @@ local-distclean:
                config.cache config.status config.log index.html \
                stepmake/stepmake/stepmake stepmake/stepmake/bin
        rm -rf autom4te.cache
+       rm -rf $(outdir)
 
 local-maintainerclean:
        rm -f configure