]> git.donarmstrong.com Git - lilypond.git/commitdiff
rigorous cleaning: do rm -rf "$(outdir)".
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 14 Dec 2006 15:24:20 +0000 (16:24 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 14 Dec 2006 15:24:20 +0000 (16:24 +0100)
This fixes problems with too large outdirs, and obviates
complex rm -rF outdir/subdir hacks.

Documentation/user/GNUmakefile
GNUmakefile.in
input/regression/GNUmakefile
stepmake/stepmake/generic-targets.make

index 997476264700853b77981595bc5da1307cdee7dc..11653d575f96adcbc169a42da0b8120baacd7bee 100644 (file)
@@ -192,13 +192,13 @@ $(outdir)/lilypond-internals/lilypond-internals.xml: $(outdir)/lilypond-internal
 $(outdir)/lilypond.pdf: $(OUT_PDF_IMAGES) $(OUT_PNG_IMAGES)
 
 $(outdir)/%.png: %.png
-       convert -geometry 50x50% $< $@
+       convert -depth 8 -geometry 50x50% $< $@
 
 $(outdir)/%.png: %.eps
        gs -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q -sOutputFile=$@ -sDEVICE=png16m -dEPSCrop -dNOPAUSE -f $< -c quit
 
 $(outdir)/%.pdf: %.png
-       convert $< $@
+       convert -depth 8 $< $@
 
 $(outdir)/%.pdf: %.eps
        gs -dAutoRotatePages=/None -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@ -dEPSCrop -c .setpdfwrite -f $<
@@ -229,11 +229,6 @@ $(outdir)/music-glossary/source:
 local-WWW: $(HTML_FILES) $(DEEP_HTML_FILES)\
  $(datafiles) $(PDF_FILES) $(source-links) info info-dir
 
-local-WWW-clean: deep-WWW-clean
-
-deep-WWW-clean:
-       rm -rf $(outdir)/lilypond $(outdir)/lilypond-internals
-
 info-dir:
        $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals music-glossary
 
@@ -241,9 +236,6 @@ info-dir:
 $(outdir)/%.bib: %.bib
        ln -f $< $@
 
-local-clean:
-       rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
-       rm -rf $(outdir)/lilypond $(outdir)/lilypond-internals $(outdir)/music-glossary
 
 # lilypond.texi deps
 $(top-build-dir)/mf/$(outconfbase)/feta16list.ly:
@@ -270,10 +262,3 @@ $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi: $(LILYPOND_
 ## unused
 $(outdir)/interfaces.itexi: dummy
        cd $(outdir) && lilypond $(top-src-dir)/ly/generate-interface-doc
-
-
-local-clean: local-delete
-
-# use `find` together with `xargs` to avoid too long argument-lists.
-local-delete:
-       $(FIND) $(outdir)/ -empty -name '*' | xargs rm -f
index 4bcf1a54fb8013a6cda742fbe977d477efa0dabe..423d2154ca1b22c8947623843f6ac00fde5d62a5 100644 (file)
@@ -212,16 +212,6 @@ $(tree-share-prefix)/mf-link-tree link-mf-tree: $(tree-share-prefix)/lilypond-fo
 TAGS.make: dummy
        etags -o $@ $(find $(top-src-dir) -name 'GNUmakefile*' -o -name '*.make')
 
-local-clean: build-dir-setup-clean local-web-clean
-
-local-web-clean:
-       rm -rf $(outdir)/web-root/
-
-
-
-build-dir-setup-clean:
-       cd $(top-build-dir) && rm -rf share
-
 $(config_h): config.hh.in
 #
 # this is to prevent people from getting
index 15b634bccf7c1787763c9235b6d1becf904bd87b..df3a19a13b9f8eb384053f05651107f297b48d9e 100644 (file)
@@ -6,9 +6,3 @@ LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
 include $(depth)/make/stepmake.make
 TITLE=LilyPond Regression Tests
 
-local-clean: local-delete
-
-# use `find` together with `xargs` to avoid too long argument-lists.
-local-delete:
-       $(FIND) $(outdir)/ -empty -name '*' | xargs rm -f
-
index 26874ad5b549b18d0e6bd5c347a1ebaf237d9078..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: