]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/misc/GNUmakefile
ebcf4f2fd0eebc5191d182f322139d779215be89
[lilypond.git] / Documentation / misc / GNUmakefile
1 depth = ../..
2
3 NAME = documentation
4
5 STEPMAKE_TEMPLATES=documentation  texinfo
6
7 TEXTS =AIMS $(wildcard CHANGES-*[0-9])  $(wildcard ANNOUNCE-*[0-9]) $(wildcard NEWS-*[0-9]) interview
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 local-WWW:  $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS))) $(OUT_HTMLFILES) txt-to-html
17
18 copy-for-me:
19         $(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true
20
21 $(outdir)/%.txt: %
22         cp $< $@
23
24 txt-to-html:
25         $(foreach a, $(TEXTS),\
26                 echo "<html><body><xmp>" > $(outdir)/$(a).html;\
27                 cat $(outdir)/$(a).txt >> $(outdir)/$(a).html;\
28                 echo "</xmp></body></html>" >> $(outdir)/$(a).html\
29         && ) true
30         $(footify) $(addprefix $(outdir)/, $(addsuffix .html, $(TEXTS)))