TEXI2HTML_PROGRAM=$(HOME)/usr/bin/texi2html
EXAMPLES=$(HOME)/lilypond/media/ly-examples
PICTURES=$(HOME)/lilypond/media/pictures
+ PYTHON=python
+ PYTHONPATH=$(TRUSTED_DIR)
else
### for normal git
script-dir=$(top-src-dir)/scripts/build
quiet-flag=-q
endif
-
-
################################################################
OUT=out-website
-### only update this when the language compiles correctly!
-# LANGUAGES = (site, cs, de, es, fr, hu, it, ja, nl, zh)
-#WEB_LANGS = de es fr hu it ja nl zh cs
-WEB_LANGS = cs de es fr hu it ja nl zh
+WEB_LANGS = $(shell MAKEWEB=1 $(PYTHON) $(top-src-dir)/python/langdefs.py)
TEXI2HTML=ONLY_WEB=1 TOP_SRC_DIR=$(top-src-dir) DEPTH=$(depth) PERL_UNICODE=SD $(TEXI2HTML_PROGRAM)
website-xrefs: website-version
for l in '' $(WEB_LANGS); do \
+ len="$${#l}" ; \
+ r="$$l"; \
+ if [ "$$len" -gt "0" ] ; then \
+ r="$$r"/; \
+ fi ; \
$(EXTRACT_TEXI_FILENAMES) \
-I $(top-src-dir)/Documentation \
-I $(top-src-dir)/Documentation/"$$l" \
$(EXTRACT_TEXI_FILENAMES) \
-I $(top-src-dir)/Documentation \
-I $(top-src-dir)/Documentation/"$$l" \
- -I $(top-src-dir)/Documentation/"$$l"/"$$d" \
+ -I $(top-src-dir)/Documentation/"$$r""$$d" \
--known-missing-files=$(top-src-dir)/scripts/build/website-known-missing-files.txt \
$(quiet-flag) \
-I $(OUT) -o $(OUT) "$$n" ; \