4 LANGS = $(shell $(PYTHON) $(buildscript-dir)/langdefs.py)
5 SUBDIRS=user bibliography pictures topdocs misc po $(LANGS)
6 STEPMAKE_TEMPLATES=documentation texinfo tex
7 LOCALSTEPMAKE_TEMPLATES=lilypond ly
8 LILYPOND_BOOK_FLAGS=--extra-options '-e "(ly:set-option (quote internal-type-checking) \#t)"'
9 README_TOP_FILES= DEDICATION THANKS
10 EXTRA_DIST_FILES= texinfo.css
12 include $(depth)/make/stepmake.make
16 local-WWW: copy-for-me txt-to-html $(outdir)/index.html
18 local-WWW-clean: deep-WWW-clean
21 rm -rf $(outdir)/wiki-dump
24 $(foreach a, $(README_TOP_FILES), cp $(top-src-dir)/$(a) $(outdir)/$(a).txt && ) true
26 OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(README_TOP_FILES)))
28 # cd $(outdir) rule gets bit hairy for --srcdir configure builds
30 $(PYTHON) $(step-bindir)/text2html.py $(OUT_TXT_FILES)
34 @if (( $$(file -b $(ISOLANG)) == directory )) 2>/dev/null; \
35 then echo "Error: $(ISOLANG) directory already exists. Exiting." ; \
38 mkdir -p $(ISOLANG)/user
39 cp fr/GNUmakefile $(ISOLANG)
40 cp fr/user/GNUmakefile $(ISOLANG)/user
41 sed -i -e 's/ISOLANG *= *fr/ISOLANG = $(ISOLANG)/' $(ISOLANG)/GNUmakefile $(ISOLANG)/user/GNUmakefile
42 $(PYTHON) $(buildscript-dir)/texi-langutils.py -d $(outdir) -b "UNTRANSLATED NODE: IGNORE ME" -o doc.pot --skeleton --gettext ../user/lilypond.tely
43 mv $(outdir)/*.*tely $(ISOLANG)/user
44 msgmerge -U po/lilypond-doc.pot $(outdir)/doc.pot
45 cp po/lilypond-doc.pot po/$(ISOLANG).po
46 @echo "*** Please add a language definition for $(ISOLANG) in buildscripts/langdefs.py ***"
49 find $(ISOLANG)/user/ -name '*.*tely' | xargs $(PYTHON) $(buildscript-dir)/check_translation.py $(buildscript-dir)