]> git.donarmstrong.com Git - lilypond.git/commitdiff
Build: add WEBSITE_ONLY_BUILD to ease maintenance.
authorGraham Percival <graham@percival-music.ca>
Sun, 27 Dec 2009 23:36:34 +0000 (23:36 +0000)
committerGraham Percival <graham@percival-music.ca>
Sun, 27 Dec 2009 23:36:34 +0000 (23:36 +0000)
GNUmakefile.in
website.make

index 6574e6540ee8f8f92acfd91599e75292cde14ff0..569548a3e72ff2aaf149bb18844e90ef3eafbd14 100644 (file)
@@ -291,6 +291,8 @@ test-snippets-clean:
 
 # we want this separate for security; see CG 4.2.  -gp
 website:
-       $(MAKE) -f $(top-src-dir)/website.make \
-               top-src-dir=$(top-src-dir) website
+       $(MAKE) config_make=$(config_make) \
+               top-src-dir=$(top-src-dir) \
+               -f $(top-src-dir)/website.make \
+               website
 
index c10f9e6f2c1b8866f033f97c8bbde42d280414d6..42d240d1bd53d0a2fc2fdd45cf2b363a9667a773 100644 (file)
@@ -2,27 +2,31 @@
 # website (without the rest of the docs)
 
 ################################################################
-#####  SECURITY -- change these values for lilypond.org ########
+#####  SECURITY -- check these values for lilypond.org #########
 ################################################################
-### for lilypond.org (comment out in git)
-#top-src-dir=$(HOME)/src/lilypond/
-#trusted-dir=$(HOME)/lilypond/trusted-scripts/
-
-### for normal git (comment out on lilypond.org)
-script-dir=$(top-src-dir)/scripts/build/
-texi2html-init-file=$(top-src-dir)/Documentation/lilypond-texi2html.init
-TEXI2HTML=texi2html
-### for lilypond.org (comment out in git)
-#script-dir=$(trusted-dir)
-#texi2html-init-file=$(top-src-dir)/Documentation/lilypond-texi2html.init
-#TEXI2HTML=$(HOME)/usr/bin/texi2html
+ifeq ($(WEBSITE_ONLY_BUILD),1)
+  ### for lilypond.org
+  top-src-dir=$(HOME)/src/lilypond
+  trusted-dir=$(HOME)/lilypond/trusted-scripts
+  script-dir=$(trusted-dir)
+  texi2html-init-file=$(trusted-dir)/lilypond-texi2html.init
+  TEXI2HTML_PROGRAM=$(HOME)/usr/bin/texi2html
+else
+  ### for normal git
+  script-dir=$(top-src-dir)/scripts/build/
+  texi2html-init-file=$(top-src-dir)/Documentation/lilypond-texi2html.init
+  include $(config_make)
+endif
 
 
 ################################################################
+OUT=out-website
+
+TEXI2HTML = SRC_DIR=$(top-src-dir)/Documentation/ PERL_UNICODE=SD $(TEXI2HTML_PROGRAM)
 
 EXTRACT_TEXI_FILENAMES=python $(script-dir)/extract_texi_filenames.py
 CREATE_VERSION=python $(script-dir)/create-version-itexi.py
-OUT=out-website
+
 EXAMPLES=$(HOME)/media/examples/
 PICTURES=$(HOME)/media/pictures
 
@@ -47,8 +51,7 @@ website-xrefs: website-version
                -I $(OUT) -o $(OUT) $(manual) && ) :
 
 website-texinfo: website-version website-xrefs
-       SRC_DIR=$(top-src-dir)/Documentation/ \
-               PERL_UNICODE=SD $(TEXI2HTML) --prefix=index \
+       $(TEXI2HTML) --prefix=index \
                --split=section \
                --I=$(top-src-dir)/Documentation/ \
                --I=$(OUT) \