LEFT | RIGHT |
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 |
| 8 quiet-run = $(findstring s, $(MAKEFLAGS)) |
| 9 ifeq ($(quiet-run),s) |
| 10 quiet-string=-q |
| 11 endif |
| 12 |
7 ifeq ($(WEBSITE_ONLY_BUILD),1) | 13 ifeq ($(WEBSITE_ONLY_BUILD),1) |
8 ### for lilypond.org | 14 ### for lilypond.org |
9 TOP_SRC_DIR=$(HOME)/lilypond/lilypond-git | 15 TOP_SRC_DIR=$(HOME)/lilypond/lilypond-git |
10 TRUSTED_DIR=$(HOME)/lilypond/trusted-scripts | 16 TRUSTED_DIR=$(HOME)/lilypond/trusted-scripts |
11 top-src-dir=$(TOP_SRC_DIR) | 17 top-src-dir=$(TOP_SRC_DIR) |
12 depth=. | 18 depth=. |
13 trusted-dir=$(TRUSTED_DIR) | 19 trusted-dir=$(TRUSTED_DIR) |
14 script-dir=$(trusted-dir) | 20 script-dir=$(trusted-dir) |
15 texi2html-init-file=$(trusted-dir)/lilypond-texi2html.init | 21 texi2html-init-file=$(trusted-dir)/lilypond-texi2html.init |
16 top-htaccess=$(trusted-dir)/lilypond.org.htaccess | 22 top-htaccess=$(trusted-dir)/lilypond.org.htaccess |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 $(CREATE_VERSION) $(top-src-dir) > $(OUT)/version.itexi | 68 $(CREATE_VERSION) $(top-src-dir) > $(OUT)/version.itexi |
63 $(CREATE_WEBLINKS) $(top-src-dir) > $(OUT)/weblinks.itexi | 69 $(CREATE_WEBLINKS) $(top-src-dir) > $(OUT)/weblinks.itexi |
64 | 70 |
65 website-xrefs: website-version | 71 website-xrefs: website-version |
66 for l in '' $(WEB_LANGS); do \ | 72 for l in '' $(WEB_LANGS); do \ |
67 $(EXTRACT_TEXI_FILENAMES) \ | 73 $(EXTRACT_TEXI_FILENAMES) \ |
68 -I $(top-src-dir)/Documentation \ | 74 -I $(top-src-dir)/Documentation \ |
69 -I $(top-src-dir)/Documentation/"$$l" \ | 75 -I $(top-src-dir)/Documentation/"$$l" \ |
70 -I $(OUT) -o $(OUT) --split=node \ | 76 -I $(OUT) -o $(OUT) --split=node \ |
71 --known-missing-files=$(top-src-dir)/scripts/build/websi
te-known-missing-files.txt \ | 77 --known-missing-files=$(top-src-dir)/scripts/build/websi
te-known-missing-files.txt \ |
| 78 $(quiet-string) \ |
72 $(top-src-dir)/Documentation/"$$l"/web.texi ;\ | 79 $(top-src-dir)/Documentation/"$$l"/web.texi ;\ |
73 for m in $(MANUALS); do \ | 80 for m in $(MANUALS); do \ |
74 n=`echo "$$m" | sed 's/Documentation/Documentation\/'$$l
'/'` ; \ | 81 n=`echo "$$m" | sed 's/Documentation/Documentation\/'$$l
'/'` ; \ |
75 b=`basename "$$n" .texi`; \ | 82 b=`basename "$$n" .texi`; \ |
76 d=`basename "$$b" .tely`; \ | 83 d=`basename "$$b" .tely`; \ |
77 if [ -e "$$n" ] ; then \ | 84 if [ -e "$$n" ] ; then \ |
78 $(EXTRACT_TEXI_FILENAMES) \ | 85 $(EXTRACT_TEXI_FILENAMES) \ |
79 -I $(top-src-dir)/Documentation \ | 86 -I $(top-src-dir)/Documentation \ |
80 -I $(top-src-dir)/Documentation/"$$l" \ | 87 -I $(top-src-dir)/Documentation/"$$l" \ |
81 -I $(top-src-dir)/Documentation/"$$l"/"$$d" \ | 88 -I $(top-src-dir)/Documentation/"$$l"/"$$d" \ |
82 --known-missing-files=$(top-src-dir)/scripts/bui
ld/website-known-missing-files.txt \ | 89 --known-missing-files=$(top-src-dir)/scripts/bui
ld/website-known-missing-files.txt \ |
| 90 $(quiet-string) \ |
83 -I $(OUT) -o $(OUT) "$$n" ; \ | 91 -I $(OUT) -o $(OUT) "$$n" ; \ |
84 fi ; \ | 92 fi ; \ |
85 done; \ | 93 done; \ |
86 done; | 94 done; |
87 | 95 |
88 website-bibs: website-version | 96 website-bibs: website-version |
89 BSTINPUTS=$(top-src-dir)/Documentation/web \ | 97 BSTINPUTS=$(top-src-dir)/Documentation/web \ |
90 $(WEB_BIBS) -s web \ | 98 $(WEB_BIBS) -s web \ |
91 -s $(top-src-dir)/Documentation/lily-bib \ | 99 -s $(top-src-dir)/Documentation/lily-bib \ |
92 -o $(OUT)/others-did.itexi \ | 100 -o $(OUT)/others-did.itexi \ |
| 101 $(quiet-string) \ |
93 $(top-src-dir)/Documentation/web/others-did.bib | 102 $(top-src-dir)/Documentation/web/others-did.bib |
94 BSTINPUTS=$(top-src-dir)/Documentation/web \ | 103 BSTINPUTS=$(top-src-dir)/Documentation/web \ |
95 $(WEB_BIBS) -s web \ | 104 $(WEB_BIBS) -s web \ |
96 -s $(top-src-dir)/Documentation/lily-bib \ | 105 -s $(top-src-dir)/Documentation/lily-bib \ |
97 -o $(OUT)/we-wrote.itexi \ | 106 -o $(OUT)/we-wrote.itexi \ |
| 107 $(quiet-string) \ |
98 $(top-src-dir)/Documentation/web/we-wrote.bib | 108 $(top-src-dir)/Documentation/web/we-wrote.bib |
99 | 109 |
100 | 110 |
101 website-texinfo: website-version website-xrefs website-bibs | 111 website-texinfo: website-version website-xrefs website-bibs |
102 for l in '' $(WEB_LANGS); do \ | 112 for l in '' $(WEB_LANGS); do \ |
103 if test -n "$$l"; then \ | 113 if test -n "$$l"; then \ |
104 langopt=--lang="$$l"; \ | 114 langopt=--lang="$$l"; \ |
105 langsuf=.$$l; \ | 115 langsuf=.$$l; \ |
106 fi; \ | 116 fi; \ |
107 $(TEXI2HTML) --prefix=index \ | 117 $(TEXI2HTML) --prefix=index \ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 web-post: | 149 web-post: |
140 $(WEB_POST) $(OUT)/website | 150 $(WEB_POST) $(OUT)/website |
141 | 151 |
142 website: website-texinfo website-css website-pictures website-examples web-post | 152 website: website-texinfo website-css website-pictures website-examples web-post |
143 cp $(SERVER_FILES)/favicon.ico $(OUT)/website | 153 cp $(SERVER_FILES)/favicon.ico $(OUT)/website |
144 cp $(SERVER_FILES)/robots.txt $(OUT)/website | 154 cp $(SERVER_FILES)/robots.txt $(OUT)/website |
145 cp $(top-htaccess) $(OUT)/.htaccess | 155 cp $(top-htaccess) $(OUT)/.htaccess |
146 cp $(dir-htaccess) $(OUT)/website/.htaccess | 156 cp $(dir-htaccess) $(OUT)/website/.htaccess |
147 | 157 |
148 | 158 |
LEFT | RIGHT |