X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=build%2FMakebottom;h=585204dcbaf10fcbc54d48f77ba5112bb528f085;hb=5403c0fab834f71416e627dfd7346a577a0ca6f5;hp=7ada9532c044e65957214809cf660050d15bb62c;hpb=c1a485d5c75c2f9a49ddb8e560ce59dde1649c45;p=libucw.git diff --git a/build/Makebottom b/build/Makebottom index 7ada9532..585204dc 100644 --- a/build/Makebottom +++ b/build/Makebottom @@ -18,7 +18,7 @@ programs: $(PROGS) datafiles: $(DATAFILES) tests: $(TESTS) configs: $(addprefix run/$(CONFIG_DIR)/,$(CONFIGS)) -docs: runtree $(DOCS) $(DOC_INDICES) +docs: runtree $(DOCS) $(DOC_INDICES) $(MANPAGES) tags: etags `find . -name "*.[ch]"` @@ -210,6 +210,11 @@ $(o)/%.html: $(o)/%.txt $(BUILDSYS)/asciidoc.conf $(BUILDSYS)/asciidoc-xhtml.con $(Q)asciidoc -e -f $(BUILDSYS)/asciidoc.conf -f $(BUILDSYS)/asciidoc-xhtml.conf -f $(HOST_PREFIX)/etc/asciidoc/asciidoc.conf -f $(HOST_PREFIX)/etc/asciidoc/xhtml11.conf $< $(Q)$(call symlink,$@,run/$(DOCDIR)/$(DOC_MODULE)) +$(MANPAGES): $(o)/%.1: $(s)/%.txt + $(M)"MANPAGE $<" + $(Q)a2x -d manpage -f manpage $< + $(Q)mv $(patsubst %.txt, %.1, $<) $(dir $@) + # In reality, we do not depend on the .txt files, but on the corresponding .deflist's. # However, the Makefile language cannot express that doc-extract generates both .txt # and .deflist, so we always use the .txt's in dependencies.