]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/misc/GNUmakefile
b617fc99cd7dc1be42fa10f140a4317659ce5887
[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 EXTRA_DIST_FILES += $(call src-wildcard,*.html)
10
11 include $(depth)/make/stepmake.make
12
13 default: local-txt-doc
14
15 #urg default local-WWW target uses footify before its time;
16 # must add footify with txt-to-html target
17 OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS)))
18 ##local-WWW-2: $(OUT_TXT_FILES) $(OUT_HTMLFILES) txt-to-html
19
20 copy-for-me:
21         $(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true
22
23 $(outdir)/%.txt: %
24         cp $< $@
25
26 txt-to-html:
27         $(PYTHON) $(step-bindir)/text2html.py $(OUT_TXT_FILES)
28         $(footify) $(addprefix $(outdir)/, $(addsuffix .html, $(TEXTS)))