]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add support for QUIET_BUILD make variable
authorJohn Mandereau <john.mandereau@gmail.com>
Tue, 26 Aug 2008 20:11:57 +0000 (22:11 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Tue, 26 Aug 2008 20:21:51 +0000 (22:21 +0200)
Also
- document it in install.itely
- fix formatting nitpicks in install.itely

Note: redirecting all of mf2pt1.pl stdout to /dev/null is exaggerated,
but it's the only easy way to junk mpost/mf excessive output when it's
called by mf2pt1.

Documentation/user/install.itely
make/lilypond-vars.make
stepmake/stepmake/metafont-rules.make
stepmake/stepmake/metafont-vars.make
stepmake/stepmake/texinfo-vars.make

index e181bf0f5585d882e5bafb4f058918166c696410..78079e595b61705a4e125e38b4b10a7ea504579e 100644 (file)
 @chapter Install
 @end ifclear
 
-@c  I don't know what this comment does.  Remove?  -gp
-@ignore
-@h tml
-<a name="download-source">
-@e nd html
-@end ignore
-
 There are two sets of releases for LilyPond: stable releases, and
 unstable development releases.  Stable versions have an even-numbered
 @q{minor} version number (i.e. 2.8, 2.10, 2.12, etc).  Development
@@ -261,6 +254,14 @@ mkdir lily-build && cd lily-build
 
 @end example
 
+
+@unnumberedsubsubsec Useful @command{make} variables
+
+If a less verbose build output if desired, the variable
+@code{QUIET_BUILD} may be set to @code{1} on @command{make} command
+line, or in @file{local.make} at top of the build tree.
+
+
 @node Building documentation
 @subsection Building documentation
 
@@ -326,6 +327,9 @@ documentation maintenance are available from @file{Documentation/};
 for more information, see @file{Documentation/user/README.txt} and
 @file{Documentation/TRANSLATION}.
 
+The makefile variable @code{QUIET_BUILD} may be set to @code{1} for a
+less verbose build output, just like for building the programs.
+
 @knownissues
 
 @code{-j} command-line option of @command{make} is unsupported for
@@ -333,7 +337,7 @@ building the documentation.  As the most time consuming task is
 running LilyPond to build images of music, the makefile variable
 @code{CPU_COUNT} may be set in @file{local.make} or on the command line
 to the number of @code{.ly} files that LilyPond should process
-simultaneously, e.g. on a bi-processor or Dual core machine
+simultaneously, e.g. on a bi-processor or dual core machine
 
 @example
 make CPU_COUNT=2 web
index 2736eb5069cb65c2441bd5775af114c162984d5c..10b82d8d9fd78c8af991d68ae7b4c59f48bf6586 100644 (file)
@@ -50,7 +50,12 @@ $(LANG_TEXIDOC_FLAGS) \
 -ddump-signatures \
 -danti-alias-factor=$(ANTI_ALIAS_FACTOR)
 
+ifdef QUIET_BUILD
+LILYPOND_BOOK_VERBOSE =
+else
 LILYPOND_BOOK_VERBOSE = --verbose
+endif
+
 LILYPOND_BOOK_INFO_IMAGES_DIR = $(if $(INFO_IMAGES_DIR),--info-images-dir=$(INFO_IMAGES_DIR),)
 LILYPOND_BOOK_FLAGS = $(LILYPOND_BOOK_VERBOSE) $(LILYPOND_BOOK_INFO_IMAGES_DIR)
 
index 64bdecf6775fcc8df561ad3313ac573251aa677f..592a47b35159fd5d64e54c328fbce5371729abf6 100644 (file)
@@ -8,7 +8,7 @@ $(outdir)/%.dvi: %.mf
        rm $(basename $<).*gf
 
 $(outdir)/%.tfm $(outdir)/%.log: %.mf
-       MFINPUTS=$(src-dir) $(METAFONT) "\mode:=$(MFMODE); nonstopmode; input $<;"
+       MFINPUTS=$(src-dir) $(METAFONT) "\mode:=$(MFMODE); nonstopmode; input $<;" $(METAFONT_QUIET)
 # Let's keep this log output, it saves another mf run.
        mv $(basename $(@F)).log $(basename $(@F)).tfm $(outdir)
        rm -f $(basename $(@F)).*gf  $(basename $(@F)).*pk
@@ -19,7 +19,7 @@ $(outdir)/%.pfb: %.mf $(outdir)/mf2pt1.mem
        TMP=`mktemp -d $(outdir)/pfbtemp.XXXXXXXXX` \
        && ( cd $$TMP \
                && ln -s ../mf2pt1.mem . \
-               && MFINPUTS=$(top-src-dir)/mf:..:: $(PERL) $(top-src-dir)/buildscripts/mf2pt1.pl $(MF2PT1_OPTIONS) $< ) \
+               && MFINPUTS=$(top-src-dir)/mf:..:: $(PERL) $(top-src-dir)/buildscripts/mf2pt1.pl $(MF2PT1_OPTIONS) $< $(METAFONT_QUIET)) \
        && mv $$TMP/*pfb $(outdir); \
        rm -rf $$TMP
 
index 55cad14e41d5599a5ed3983a1b7fabe0a6cf75b9..f4d5332a922e35fdb92db54f191ae6a619eb52eb 100644 (file)
@@ -11,3 +11,9 @@ MF2PT1_OPTIONS=--rounding=0.0001 \
                --family=$(notdir $(<:%.mf=%)) \
                --fullname=$(notdir $(<:%.mf=%)) \
                --name=$(notdir $(<:%.mf=%))
+
+ifdef QUIET_BUILD
+METAFONT_QUIET = >/dev/null
+else
+METAFONT_QUIET =
+endif
index d53bd8f7dd650fc86871791a31583ad0bc4ad8a6..a3d706f1f794aaa6811fba6d9121b502a39a7788 100644 (file)
@@ -14,7 +14,9 @@ TEXINFO_PAPERSIZE_OPTION= $(if $(findstring $(PAPERSIZE),a4),,-t @afourpaper)
 MAKEINFO_FLAGS = --enable-encoding
 MAKEINFO = LANG= $(MAKEINFO_PROGRAM) $(MAKEINFO_FLAGS)
 
+ifdef QUIET_BUILD
 TEXI2PDF_FLAGS += -q
+endif
 
 # info stuff
 INFO_INSTALL_FILES = $(wildcard $(addsuffix *, $(INFO_FILES)))