]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/GNUmakefile
a7306c85242531467eb64e75bf6b1e0f1398987c
[lilypond.git] / Documentation / GNUmakefile
1 depth = ..
2
3 NAME = documentation
4 SUBDIRS=user bibliography pictures topdocs  misc
5 STEPMAKE_TEMPLATES=documentation texinfo tex
6 LOCALSTEPMAKE_TEMPLATES=lilypond ly
7 LILYPOND_BOOK_FLAGS=--extra-options '-e "(ly:set-option (quote internal-type-checking) \#t)"'
8 README_TOP_FILES= DEDICATION THANKS ChangeLog
9 EXTRA_DIST_FILES= texinfo.css
10
11 include $(depth)/make/stepmake.make 
12
13 default: local-doc
14
15 local-WWW: copy-for-me txt-to-html $(outdir)/index.html
16
17 local-WWW-clean: deep-WWW-clean
18
19 deep-WWW-clean:
20         rm -rf $(outdir)/wiki-dump
21
22 copy-for-me:
23         $(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true
24
25 OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(README_TOP_FILES)))
26
27 # cd $(outdir) rule gets bit hairy for --srcdir configure builds
28 txt-to-html:
29         $(PYTHON) $(step-bindir)/text2html.py $(OUT_TXT_FILES)