]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/topdocs/GNUmakefile
Add '-dcrop' option to ps and svg backends
[lilypond.git] / Documentation / topdocs / GNUmakefile
index 80ab9a654afbbad1f5bec54934742d62f31ddd2a..43a99497c10c8c78af1b8432170123142eae2c4e 100644 (file)
@@ -1,22 +1,21 @@
 depth = ../..
 
-
-STEPMAKE_TEMPLATES=documentation tex texinfo
+STEPMAKE_TEMPLATES=documentation tex texinfo topdocs
 LOCALSTEPMAKE_TEMPLATES=lilypond ly
-HTML_FILES=$(addprefix $(outdir)/, $(TEXI_FILES:.texi=.html) $(TELY_FILES:.tely=.html))
-
-#default: local-doc 
-
-include $(depth)/make/stepmake.make 
+OUT_TEXI_FILES = $(TEXI_FILES:%.texi=$(outdir)/%.texi) $(TELY_FILES:%.tely=$(outdir)/%.texi)
+HTML_FILES=$(TEXI_FILES:%.texi=$(outdir)/%.html) $(TELY_FILES:%.tely=$(outdir)/%.html)
+README_TOP_FILES=NEWS AUTHORS INSTALL README
+OUTTXT_FILES= $(outdir)/NEWS.txt
 
-copy-to-top:  $(TO_TOP_FILES)
-       $(foreach i, $(TO_TOP_FILES), \
-         cp $(i) $(depth)/ && ) true
-       -cp $(outdir)/*png $(outdir)/index.html $(depth)  # don't fail if not making website
+include $(depth)/make/stepmake.make
 
-###local-WWW: copy-to-top
+DOCUMENTATION_INCLUDES += -I $(outdir) \
+  -I $(top-src-dir)/Documentation
 
-local-WWW: $(HTML_FILES) copy-to-top
-# we want footers even if website builds (or is built) partly
-       $(MAKE) footify
+# FIXME ad-hoc file copy?
+$(outdir)/NEWS.tely: $(top-src-dir)/Documentation/changes.tely
+       cp -f $< $@
 
+ifeq ($(out),www)
+local-WWW-1: $(OUT_TEXI_FILES)
+endif