]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/misc/GNUmakefile
bb3beb4998c5b63018cc8d6bd322ef457452b74d
[lilypond.git] / Documentation / misc / GNUmakefile
1 depth = ../..
2
3 NAME = documentation
4
5 STEPMAKE_TEMPLATES=documentation  texinfo
6
7 TEXTS = $(call src-wildcard,ANNOUNCE-*[0-9]) $(call src-wildcard,CHANGES-*[0-9]) $(call src-wildcard,ChangeLog*[0-9]) $(call src-wildcard,NEWS-*[0-9])
8 EXTRA_DIST_FILES = $(TEXTS)
9
10 include $(depth)/make/stepmake.make
11
12 default: local-doc
13
14 #urg default local-WWW target uses footify before its time;
15 # must add footify with txt-to-html target
16 OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS)))
17 ##local-WWW-2: $(OUT_TXT_FILES) $(OUT_HTMLFILES) txt-to-html
18
19 copy-for-me:
20         $(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true
21
22 $(outdir)/%.txt: %
23         cp $< $@
24
25 txt-to-html:
26         $(PYTHON) $(step-bindir)/text2html.py $(OUT_TXT_FILES)
27         $(footify) $(addprefix $(outdir)/, $(addsuffix .html, $(TEXTS)))