From: Michal Vaner Date: Sun, 7 Sep 2008 15:16:10 +0000 (+0200) Subject: Doc system: build system for deflists and indeces X-Git-Tag: holmes-import~332 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=45d6ee46a04893735f633e937bd3beb108bdf93b;p=libucw.git Doc system: build system for deflists and indeces Makefile rules for building documentation indeces --- diff --git a/build/Makebottom b/build/Makebottom index 1b62b06a..31046591 100644 --- a/build/Makebottom +++ b/build/Makebottom @@ -16,7 +16,7 @@ programs: $(PROGS) datafiles: $(DATAFILES) tests: $(TESTS) configs: $(addprefix run/$(CONFIG_DIR)/,$(CONFIGS)) -docs: runtree $(DOCS) +docs: runtree $(DOCS) $(DOC_INDEXES) tags: etags `find . -name "*.[ch]"` @@ -197,9 +197,15 @@ $(o)/%.html: $(o)/%.txt $(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