]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/generic-targets.make
Merge branch 'master' of git://git.sv.gnu.org/lilypond
[lilypond.git] / stepmake / stepmake / generic-targets.make
index ea288ca58c13a37693247fc2b1422d3af0a4684f..7546bbd2b5565840b29e1e64bbc9ad8e9b77a38f 100644 (file)
@@ -7,9 +7,8 @@ all:     default
 man:
        $(LOOP)
 
-# be careful about deletion.
 clean: local-clean
-       -rm -f $(outdir)/*
+       -rm -rf "./$(outdir)"
        $(LOOP)
 
 ifneq ($(strip $(depth)),.)
@@ -23,8 +22,8 @@ distclean: clean
 
 cvs-clean:
        $(MAKE) local-distclean
-       find . -type d -name out | xargs rm -rf
-       find . -type d -name out-www | xargs rm -rf
+       rm -rf out
+       rm -rf out-www
        rm -f aclocal.m4 configure
 
 maintainerclean:
@@ -69,6 +68,7 @@ Note that all commands recurse into subdirectories;\n\
 prepend \`local-' to restrict operation to the current directory.\n\
 Example: \`local-clean'.\n"
 
+# "
 local-help:
 
 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
@@ -147,6 +147,7 @@ $(outdir)/dummy.dep:
        @echo please ignore innocent warning about dummy.dep
        -mkdir -p $(outdir)
        touch $(outdir)/dummy.dep
+       echo '*' > $(outdir)/.gitignore
 
 check: local-check
        $(LOOP)