Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1101)

Side by Side Diff: make/website.make

Issue 4515042: Making website build almost completely quiet (Closed)
Patch Set: 2nd draft of quiet website build Created 12 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 ################################################################ 1 ################################################################
2 # website (without the rest of the docs) 2 # website (without the rest of the docs)
3 3
4 ################################################################ 4 ################################################################
5 ##### SECURITY -- check these values for lilypond.org ######### 5 ##### SECURITY -- check these values for lilypond.org #########
6 ################################################################ 6 ################################################################
7
Graham Percival (old account) 2011/05/15 20:19:52 IMO this stuff isn't security -- could you move it
8 ################################################################
9 #The 4 lines below present an option to force make website to run
10 # quietly only when it is run as make -s website. However, we've
11 # decided not to use this switch, and run the scripts quietly all
12 # the time
13 ################################################################
14 #quiet-run = $(findstring s, $(MAKEFLAGS))
15 #ifeq ($(quiet-run),s)
16 # quiet-flag=-q
17 #endif
18
19 #Nothing clever here - just allows the use of a boolean to control
20 # quiet running
21 quiet-run = true
22 ifeq ($(quiet-run),true)
23 quiet-flag=-q
24 endif
25
7 ifeq ($(WEBSITE_ONLY_BUILD),1) 26 ifeq ($(WEBSITE_ONLY_BUILD),1)
8 ### for lilypond.org 27 ### for lilypond.org
9 TOP_SRC_DIR=$(HOME)/lilypond/lilypond-git 28 TOP_SRC_DIR=$(HOME)/lilypond/lilypond-git
10 TRUSTED_DIR=$(HOME)/lilypond/trusted-scripts 29 TRUSTED_DIR=$(HOME)/lilypond/trusted-scripts
11 top-src-dir=$(TOP_SRC_DIR) 30 top-src-dir=$(TOP_SRC_DIR)
12 depth=. 31 depth=.
13 trusted-dir=$(TRUSTED_DIR) 32 trusted-dir=$(TRUSTED_DIR)
14 script-dir=$(trusted-dir) 33 script-dir=$(trusted-dir)
15 texi2html-init-file=$(trusted-dir)/lilypond-texi2html.init 34 texi2html-init-file=$(trusted-dir)/lilypond-texi2html.init
16 top-htaccess=$(trusted-dir)/lilypond.org.htaccess 35 top-htaccess=$(trusted-dir)/lilypond.org.htaccess
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 $(CREATE_VERSION) $(top-src-dir) > $(OUT)/version.itexi 81 $(CREATE_VERSION) $(top-src-dir) > $(OUT)/version.itexi
63 $(CREATE_WEBLINKS) $(top-src-dir) > $(OUT)/weblinks.itexi 82 $(CREATE_WEBLINKS) $(top-src-dir) > $(OUT)/weblinks.itexi
64 83
65 website-xrefs: website-version 84 website-xrefs: website-version
66 for l in '' $(WEB_LANGS); do \ 85 for l in '' $(WEB_LANGS); do \
67 $(EXTRACT_TEXI_FILENAMES) \ 86 $(EXTRACT_TEXI_FILENAMES) \
68 -I $(top-src-dir)/Documentation \ 87 -I $(top-src-dir)/Documentation \
69 -I $(top-src-dir)/Documentation/"$$l" \ 88 -I $(top-src-dir)/Documentation/"$$l" \
70 -I $(OUT) -o $(OUT) --split=node \ 89 -I $(OUT) -o $(OUT) --split=node \
71 --known-missing-files=$(top-src-dir)/scripts/build/websi te-known-missing-files.txt \ 90 --known-missing-files=$(top-src-dir)/scripts/build/websi te-known-missing-files.txt \
91 $(quiet-flag) \
72 $(top-src-dir)/Documentation/"$$l"/web.texi ;\ 92 $(top-src-dir)/Documentation/"$$l"/web.texi ;\
73 for m in $(MANUALS); do \ 93 for m in $(MANUALS); do \
74 n=`echo "$$m" | sed 's/Documentation/Documentation\/'$$l '/'` ; \ 94 n=`echo "$$m" | sed 's/Documentation/Documentation\/'$$l '/'` ; \
75 b=`basename "$$n" .texi`; \ 95 b=`basename "$$n" .texi`; \
76 d=`basename "$$b" .tely`; \ 96 d=`basename "$$b" .tely`; \
77 if [ -e "$$n" ] ; then \ 97 if [ -e "$$n" ] ; then \
78 $(EXTRACT_TEXI_FILENAMES) \ 98 $(EXTRACT_TEXI_FILENAMES) \
79 -I $(top-src-dir)/Documentation \ 99 -I $(top-src-dir)/Documentation \
80 -I $(top-src-dir)/Documentation/"$$l" \ 100 -I $(top-src-dir)/Documentation/"$$l" \
81 -I $(top-src-dir)/Documentation/"$$l"/"$$d" \ 101 -I $(top-src-dir)/Documentation/"$$l"/"$$d" \
82 --known-missing-files=$(top-src-dir)/scripts/bui ld/website-known-missing-files.txt \ 102 --known-missing-files=$(top-src-dir)/scripts/bui ld/website-known-missing-files.txt \
103 $(quiet-flag) \
83 -I $(OUT) -o $(OUT) "$$n" ; \ 104 -I $(OUT) -o $(OUT) "$$n" ; \
84 fi ; \ 105 fi ; \
85 done; \ 106 done; \
86 done; 107 done;
87 108
88 website-bibs: website-version 109 website-bibs: website-version
89 BSTINPUTS=$(top-src-dir)/Documentation/web \ 110 BSTINPUTS=$(top-src-dir)/Documentation/web \
90 $(WEB_BIBS) -s web \ 111 $(WEB_BIBS) -s web \
91 -s $(top-src-dir)/Documentation/lily-bib \ 112 -s $(top-src-dir)/Documentation/lily-bib \
92 -o $(OUT)/others-did.itexi \ 113 -o $(OUT)/others-did.itexi \
114 $(quiet-flag) \
93 $(top-src-dir)/Documentation/web/others-did.bib 115 $(top-src-dir)/Documentation/web/others-did.bib
94 BSTINPUTS=$(top-src-dir)/Documentation/web \ 116 BSTINPUTS=$(top-src-dir)/Documentation/web \
95 $(WEB_BIBS) -s web \ 117 $(WEB_BIBS) -s web \
96 -s $(top-src-dir)/Documentation/lily-bib \ 118 -s $(top-src-dir)/Documentation/lily-bib \
97 -o $(OUT)/we-wrote.itexi \ 119 -o $(OUT)/we-wrote.itexi \
120 $(quiet-flag) \
98 $(top-src-dir)/Documentation/web/we-wrote.bib 121 $(top-src-dir)/Documentation/web/we-wrote.bib
99 122
100 123
101 website-texinfo: website-version website-xrefs website-bibs 124 website-texinfo: website-version website-xrefs website-bibs
102 for l in '' $(WEB_LANGS); do \ 125 for l in '' $(WEB_LANGS); do \
103 if test -n "$$l"; then \ 126 if test -n "$$l"; then \
104 langopt=--lang="$$l"; \ 127 langopt=--lang="$$l"; \
105 langsuf=.$$l; \ 128 langsuf=.$$l; \
106 fi; \ 129 fi; \
107 $(TEXI2HTML) --prefix=index \ 130 $(TEXI2HTML) --prefix=index \
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 web-post: 162 web-post:
140 $(WEB_POST) $(OUT)/website 163 $(WEB_POST) $(OUT)/website
141 164
142 website: website-texinfo website-css website-pictures website-examples web-post 165 website: website-texinfo website-css website-pictures website-examples web-post
143 cp $(SERVER_FILES)/favicon.ico $(OUT)/website 166 cp $(SERVER_FILES)/favicon.ico $(OUT)/website
144 cp $(SERVER_FILES)/robots.txt $(OUT)/website 167 cp $(SERVER_FILES)/robots.txt $(OUT)/website
145 cp $(top-htaccess) $(OUT)/.htaccess 168 cp $(top-htaccess) $(OUT)/.htaccess
146 cp $(dir-htaccess) $(OUT)/website/.htaccess 169 cp $(dir-htaccess) $(OUT)/website/.htaccess
147 170
148 171
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b