]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/GNUmakefile
Merge branch 'jneeman' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond into jneeman
[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 ifneq ($(ISOLANG),)
33 new-lang:
34         @if (( $$(file -b $(ISOLANG)) == directory )) 2>/dev/null; \
35         then echo "Error: $(ISOLANG) directory already exists. Exiting." ; \
36         exit 3 ; \
37         fi
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) $(depth)/buildscripts/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 endif