diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-01-02 15:13:12 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-01-02 15:13:12 +0100 |
commit | c61c37abf3b6236cd65690fe8a47bdcd9d66bc13 (patch) | |
tree | 9e5dc0baf8998373ca345e708dde72ef83a70eb9 /Makefile | |
parent | 80f1550529e08e71c87e44b38d6cf53171737d57 (diff) |
doc: use mandoc as source, pre-generate documentation
generate documentation in doc/ . Now there is no hard dependency on mandoc and
systems that don't have it can just copy the files for now.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -76,16 +76,18 @@ dist: $(BIN) (cd release/${VERSION}; \ tar -czf ../../sfeed-${VERSION}.tar.gz .) +doc: doc-html doc-oldman + # man to HTML: make sure to copy the mandoc example stylesheet to # doc/html/man.css . doc-html: $(MAN1) mkdir -p doc/html - for m in $(MAN1); do mandoc -Thtml -Ostyle=man.css $$m > doc/html/$$m.html; done + for m in $(MAN1); do mandoc -Ios="" -Thtml -Ostyle=man.css $$m > doc/html/$$m.html; done # legacy man pages, if you want semantic mandoc pages just copy them. doc-oldman: $(MAN1) mkdir -p doc/man - for m in $(MAN1); do mandoc -Tman $$m > doc/man/$$m; done + for m in $(MAN1); do mandoc -Ios="" -Tman $$m > doc/man/$$m; done ${OBJ}: config.mk |