datafiles: $(DATAFILES)
tests: $(TESTS)
configs: $(addprefix run/$(CONFIG_DIR)/,$(CONFIGS))
-docs: runtree $(DOCS)
+docs: runtree $(DOCS) $(DOC_INDEXES)
tags:
etags `find . -name "*.[ch]"`
$(M)"AD $< -> $@"
$(Q)asciidoc -e -f $(s)/build/asciidoc.conf -f $(s)/build/asciidoc-xhtml.conf -f /etc/asciidoc/asciidoc.conf -f /etc/asciidoc/xhtml11.conf $<
-$(o)/%.txt: $(s)/%.txt
+$(patsubst %.html,%.txt,$(DOC_INDEXES)): $(o)/%.txt:
+ $(M)"DD -> $@"
+ $(Q)echo $@: $(DOC_HEAD) $(DOC_LIST) >> $(o)/depend.new
+ $(Q)$(s)/build/def-doc.pl $(DOC_HEAD) $@ $(DOC_LIST)
+
+#FIXME: this one outputs .deflist too. How do I specify that one run of the rule has multiple target files?
+$(patsubst %.html,%.txt,$(DOCS)): $(o)/%.txt: $(s)/%.txt
$(M)"ED $< -> $@"
- $(Q)$(s)/build/extract-doc.pl $< $@ $(o)/depend.new $(s)
+ $(Q)$(s)/build/extract-doc.pl $< $@ $(o)/depend.new $(s) $(patsubst %.txt,%.deflist,$@)
# Default installation target