]> git.donarmstrong.com Git - lilypond.git/commitdiff
Docs build: restore CHAIN_RULE
authorJohn Mandereau <john.mandereau@gmail.com>
Tue, 28 Jul 2009 17:47:50 +0000 (19:47 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Tue, 28 Jul 2009 17:49:30 +0000 (19:49 +0200)
This also fixes docs build on many configurations.

Documentation/GNUmakefile
make/ly-rules.make
make/ly-vars.make

index ab36a560a98730ae2623de4dfb3b5284155fa41b..7a9d67cefa90f6262a9c6dd962e58a352063a1e7 100644 (file)
@@ -65,6 +65,7 @@ source-links = $(outdir)/source\
  $(foreach manual, $(SPLITTED_HTML_MANUALS), $(outdir)/$(manual)/source)
 
 # Other out files
+
 HTML_PAGE_NAMES= index translations devel
 OUT_HTML_FILES += $(HTML_PAGE_NAMES:%=$(outdir)/%.html)
 OUT_CSS_FILES = $(CSS_FILES:%.css=$(outdir)/%.css)
@@ -84,6 +85,12 @@ endif
 
 include $(depth)/make/stepmake.make
 
+## CHAIN_RULE hack: keep the following line *after* including
+# stepmake.make, so the Internals Reference is built before the
+# Notation Reference, thus providing automatically generated sections
+# of the NR
+TEXI_FILES_FROM_TELY += $(outdir)/internals.texi
+
 OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(README_TOP_FILES)))
 
 ###########
index 426352d2b3ad63375a9b5b159425364479cb83df..19b00f05b222ed41653b2f40fd7345e91c30b296 100644 (file)
@@ -15,7 +15,9 @@ $(i)
 $(i): 
 endef
 
-$(eval $(firstword $(MASTER_TEXI_FILES)): $(foreach i, $(wordlist 2, $(words $(MASTER_TEXI_FILES)), $(MASTER_TEXI_FILES)),$(CHAIN_RULE)))
+$(eval $(firstword $(TEXI_FILES_FROM_TELY)):\
+ $(foreach i, $(wordlist 2, $(words $(TEXI_FILES_FROM_TELY)),\
+ $(TEXI_FILES_FROM_TELY)),$(CHAIN_RULE)))
 
 # don't do ``cd $(outdir)'', and assume that $(outdir)/.. is the src dir.
 # it is not, for --srcdir builds
index c3c8a24ba4be7a12edb6422211431e07388e1681..612a2b3e4015e6ded16d1860c0785ad229e7acd2 100644 (file)
@@ -1,8 +1,7 @@
 # rules for directories with LilyPond files.
 
 TELY_FILES := $(call src-wildcard,*.tely)
-MASTER_TEXI_FILES := $(sort $(TELY_FILES:%.tely=$(outdir)/%.texi))\
- $(OUT_MASTER_TEXI_FILES)
+TEXI_FILES_FROM_TELY += $(TELY_FILES:%.tely=$(outdir)/%.texi)
 
 OMF_FILES += $(foreach format, html pdf, $(foreach f, $(TELY_FILES), $(outdir)/$(f:.tely=.$(format)).omf))