X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2FGNUmakefile;h=37a452a11f1b975c33a484ac18f2b76e1b428572;hb=db2d03691f2b1114b1b822c3ed0aa6f803045815;hp=40b54c886bcbf10c2beb67f487e45f383348d14f;hpb=d098d33a41336f4966b5b3c8444d7646b5f80c88;p=lilypond.git diff --git a/Documentation/GNUmakefile b/Documentation/GNUmakefile index 40b54c886b..37a452a11f 100644 --- a/Documentation/GNUmakefile +++ b/Documentation/GNUmakefile @@ -1,26 +1,47 @@ depth = .. NAME = documentation -SUBDIRS=user bibliography pictures topdocs ntweb misc +LANGS = $(shell $(PYTHON) $(buildscript-dir)/langdefs.py) +SUBDIRS=user bibliography pictures topdocs misc po $(LANGS) STEPMAKE_TEMPLATES=documentation texinfo tex -LOCALSTEPMAKE_TEMPLATES=lilypond mudela +LOCALSTEPMAKE_TEMPLATES=lilypond ly +LILYPOND_BOOK_FLAGS=--extra-options '-e "(ly:set-option (quote internal-type-checking) \#t)"' +README_TOP_FILES= DEDICATION THANKS +EXTRA_DIST_FILES= texinfo.css -README_TOP_FILES=NEWS DEDICATION CHANGES TODO -EXTRA_DIST_FILES= - -include $(depth)/make/stepmake.make +include $(depth)/make/stepmake.make default: local-doc -local-WWW: copy-for-me txt-to-html $(outdir)/regression-test.ps.gz $(outdir)/regression-test.html footify +local-WWW: copy-for-me txt-to-html $(outdir)/index.html + +local-WWW-clean: deep-WWW-clean + +deep-WWW-clean: + rm -rf $(outdir)/wiki-dump copy-for-me: - $(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true + $(foreach a, $(README_TOP_FILES), cp $(top-src-dir)/$(a) $(outdir)/$(a).txt && ) true +OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(README_TOP_FILES))) + +# cd $(outdir) rule gets bit hairy for --srcdir configure builds txt-to-html: - $(foreach a, $(README_TOP_FILES), \ - echo "" > $(outdir)/$(a).html;\ - cat $(outdir)/$(a).txt >> $(outdir)/$(a).html;\ - echo "" >> $(outdir)/$(a).html\ - && ) true - $(footify) $(addprefix $(outdir)/, $(addsuffix .html, $(README_TOP_FILES))) + $(PYTHON) $(step-bindir)/text2html.py $(OUT_TXT_FILES) + +ifneq ($(ISOLANG),) +new-lang: + @if (( $$(file -b $(ISOLANG)) == directory )) 2>/dev/null; \ + then echo "Error: $(ISOLANG) directory already exists. Exiting." ; \ + exit 3 ; \ + fi + mkdir -p $(ISOLANG)/user + cp fr/GNUmakefile $(ISOLANG) + cp fr/user/GNUmakefile $(ISOLANG)/user + sed -i -e 's/ISOLANG *= *fr/ISOLANG = $(ISOLANG)/' $(ISOLANG)/GNUmakefile $(ISOLANG)/user/GNUmakefile + $(PYTHON) $(buildscript-dir)/texi-langutils.py -d $(outdir) -b "UNTRANSLATED NODE: IGNORE ME" -o doc.pot --skeleton --gettext ../user/lilypond.tely + mv $(outdir)/*.*tely $(ISOLANG)/user + msgmerge -U po/lilypond-doc.pot $(outdir)/doc.pot + cp po/lilypond-doc.pot po/$(ISOLANG).po + @echo "*** Please add a language definition for $(ISOLANG) in buildscripts/langdefs.py ***" +endif