]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/GNUmakefile
Initial patch
[lilypond.git] / Documentation / GNUmakefile
1 depth = ..
2
3 NAME = documentation
4 LANGS = fr # don't enable unpolished or broken translations
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
11
12 include $(depth)/make/stepmake.make
13
14 default: local-doc
15
16 local-WWW: copy-for-me txt-to-html $(outdir)/index.html
17
18 local-WWW-clean: deep-WWW-clean
19
20 deep-WWW-clean:
21         rm -rf $(outdir)/wiki-dump
22
23 copy-for-me:
24         $(foreach a, $(README_TOP_FILES), cp $(top-src-dir)/$(a) $(outdir)/$(a).txt && ) true
25
26 OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(README_TOP_FILES)))
27
28 # cd $(outdir) rule gets bit hairy for --srcdir configure builds
29 txt-to-html:
30         $(PYTHON) $(step-bindir)/text2html.py $(OUT_TXT_FILES)
31
32 new-lang:
33         @if (( $$(file -b $(ISOLANG)) == directory )) 2>/dev/null; \
34         then echo "Error: $(ISOLANG) directory already exists. Exiting." ; \
35         exit 3 ; \
36         fi
37         mkdir -p $(ISOLANG)/user
38         echo "ISOLANG = $(ISOLANG)" > $(ISOLANG)/GNUmakefile
39         echo "depth = ../$(depth)" >> $(ISOLANG)/GNUmakefile
40         echo -e "\ninclude \$$(depth)/make/doc-lang/root.make\n" >> $(ISOLANG)/GNUmakefile
41         echo "ISOLANG = $(ISOLANG)" > $(ISOLANG)/user/GNUmakefile
42         echo "depth = ../../$(depth)" >> $(ISOLANG)/user/GNUmakefile
43         echo -e "\ninclude \$$(depth)/make/doc-lang/user.make\n" >> $(ISOLANG)/user/GNUmakefile
44         $(PYTHON) $(depth)/buildscripts/texi-langutils.py -d $(outdir) -b "UNTRANSLATED NODE: IGNORE ME" -o doc.pot --skeleton --gettext ../user/lilypond.tely
45         mv $(outdir)/*.*tely $(ISOLANG)/user
46         msgmerge -U po/lilypond-doc.pot $(outdir)/doc.pot
47         cp po/lilypond-doc.pot po/$(ISOLANG).po