$(TELY_FILES:%.tely=%)\
$(TEXI_FILES:%.texi=%)
+## CHAIN_RULE hack: keep the following line *before* 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
+
PDF_FILES = $(TEXINFO_MANUALS:%=$(outdir)/%.pdf)
UNSPLITTED_HTML_MANUALS = changes
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)))
###########
# rules for directories with LilyPond files.
TELY_FILES := $(call src-wildcard,*.tely)
-TEXI_FILES_FROM_TELY += $(TELY_FILES:%.tely=$(outdir)/%.texi)
+TEXI_FILES_FROM_TELY := $(TELY_FILES:%.tely=$(outdir)/%.texi) $(TEXI_FILES_FROM_TELY)
OMF_FILES += $(foreach format, html pdf, $(foreach f, $(TELY_FILES), $(outdir)/$(f:.tely=.$(format)).omf))