]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/misc/GNUmakefile
Make distributed tarball from Git file list
[lilypond.git] / Documentation / misc / GNUmakefile
index ebcf4f2fd0eebc5191d182f322139d779215be89..00fe5ae8260622cc6834613df40a8ea6c3943eee 100644 (file)
@@ -2,18 +2,18 @@ depth = ../..
 
 NAME = documentation
 
-STEPMAKE_TEMPLATES=documentation  texinfo
+STEPMAKE_TEMPLATES = documentation texinfo
 
-TEXTS =AIMS $(wildcard CHANGES-*[0-9])  $(wildcard ANNOUNCE-*[0-9]) $(wildcard NEWS-*[0-9]) interview
-EXTRA_DIST_FILES = $(TEXTS)
+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])
 
-include $(depth)/make/stepmake.make 
+include $(depth)/make/stepmake.make
 
-default: local-doc
+default: local-txt-doc
 
-#urg default local-WWW target uses footify before its time; 
+#urg default local-WWW target uses footify before its time;
 # must add footify with txt-to-html target
-local-WWW:  $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS))) $(OUT_HTMLFILES) txt-to-html
+OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS)))
+##local-WWW-2: $(OUT_TXT_FILES) $(OUT_HTMLFILES) txt-to-html
 
 copy-for-me:
        $(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true
@@ -22,9 +22,5 @@ $(outdir)/%.txt: %
        cp $< $@
 
 txt-to-html:
-       $(foreach a, $(TEXTS),\
-               echo "<html><body><xmp>" > $(outdir)/$(a).html;\
-               cat $(outdir)/$(a).txt >> $(outdir)/$(a).html;\
-               echo "</xmp></body></html>" >> $(outdir)/$(a).html\
-       && ) true
+       $(PYTHON) $(step-bindir)/text2html.py $(OUT_TXT_FILES)
        $(footify) $(addprefix $(outdir)/, $(addsuffix .html, $(TEXTS)))