]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/generic-targets.make
Merge branch 'jneeman' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond into jneeman
[lilypond.git] / stepmake / stepmake / generic-targets.make
index a196a357bc0e5d4ac6ac50a4f418da910e1ab154..7546bbd2b5565840b29e1e64bbc9ad8e9b77a38f 100644 (file)
@@ -7,21 +7,26 @@ all:   default
 man:
        $(LOOP)
 
-# be careful about deletion.
 clean: local-clean
-       -rm -f $(outdir)/*
+       -rm -rf "./$(outdir)"
        $(LOOP)
 
 ifneq ($(strip $(depth)),.)
 dist:
-       make -C $(depth) dist
+       $(MAKE) -C $(depth) dist
 endif
 
-distclean: clean 
+distclean: clean
        $(LOOP)
        $(MAKE) local-distclean
 
-maintainerclean: 
+cvs-clean:
+       $(MAKE) local-distclean
+       rm -rf out
+       rm -rf out-www
+       rm -f aclocal.m4 configure
+
+maintainerclean:
        $(LOOP)
        $(MAKE) local-maintainerclean
        $(MAKE) local-distclean
@@ -63,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)
@@ -133,7 +139,7 @@ local-uninstall:
 
 installextradoc:
        -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
-       cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package) 
+       cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
 
 include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep) # expect a warning here
 
@@ -141,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)
@@ -164,7 +171,7 @@ diff:
        $(PYTHON) $(step-bindir)/package-diff.py  --outdir=$(top-src-dir)/$(outdir) --package=$(top-src-dir) $(makeflags)
        -ln -f $(depth)/$(outdir)/$(distname).diff.gz $(patch-dir)
 
-release: 
+release:
        $(PYTHON) $(step-bindir)/release.py --outdir=$(top-src-dir)/$(outdir) --package=$(top-src-dir)
 
 
@@ -180,6 +187,6 @@ WWW: local-WWW
 WWW-post: local-WWW-post
        $(LOOP)
 
-web: 
+web:
        $(MAKE) out=www WWW
        $(MAKE) out=www WWW-post