]> mj.ucw.cz Git - libucw.git/blobdiff - build/Makebottom
XTypes: Added support to configuration and option parser.
[libucw.git] / build / Makebottom
index 7ada9532c044e65957214809cf660050d15bb62c..bb8c67d0ecb12b244a880e15b33d637afdc15cbe 100644 (file)
@@ -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,12 @@ $(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)/%: $(s)/%.txt
+       $(M)"DOC-MAN $<"
+       $(Q)a2x -d manpage -f manpage -D $(dir $@) $<
+       $(Q)mkdir -p run/$(DOCDIR)/man/man$(subst .,,$(suffix $@))
+       $(Q)$(call symlink,$@,run/$(DOCDIR)/man/man$(subst .,,$(suffix $@)))
+
 # 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.