summaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-03 16:36:06 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-03 16:36:06 +0000
commit5fd4bbfb011aeb0750a37047be4d3fade1964aea (patch)
tree1dc8a3461388b9f151c4f2321f0e8214676d3252 /Makefile
parent2c8407d1d02802e3c8bd38cf02d3e7cc8252a498 (diff)
downloadmandoc-5fd4bbfb011aeb0750a37047be4d3fade1964aea.tar.gz
mandoc-5fd4bbfb011aeb0750a37047be4d3fade1964aea.tar.zst
mandoc-5fd4bbfb011aeb0750a37047be4d3fade1964aea.zip
Fixed mandoc.1 examples (new -Thtml options).
Fixed manuals to use `In', not `Fd'. Moved buf* functions into html.c.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index d8185484..33bff355 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,9 @@ CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g
CFLAGS += $(VFLAGS)
LINTFLAGS += $(VFLAGS)
+MANDOCFLAGS = -Wall -fstrict
+MANDOCHTML = -Thtml -ostyle=style.css,man=%N.%S.html,includes=%I.html
+
MDOCLNS = mdoc_macro.ln mdoc.ln mdoc_hash.ln mdoc_strings.ln \
mdoc_argv.ln mdoc_validate.ln mdoc_action.ln \
lib.ln att.ln arch.ln vol.ln msec.ln st.ln \
@@ -229,22 +232,22 @@ mandoc: $(MAINOBJS) libmdoc.a libman.a
sed -e "s!@VERSION@!$(VERSION)!" -e "s!@VDATE@!$(VDATE)!" $< > $@
.1.1.txt:
- ./mandoc -Wall,error -fstrict $< | col -b > $@
+ ./mandoc $(MANDOCFLAGS) $< | col -b > $@
.1.1.sgml:
- ./mandoc -Thtml -ostyle=style.css -Wall,error -fstrict $< > $@
+ ./mandoc $(MANDOCFLAGS) $(MANDOCHTML) $< > $@
.3.3.txt:
- ./mandoc -Wall,error -fstrict $< | col -b > $@
+ ./mandoc $(MANDOCFLAGS) $< | col -b > $@
.3.3.sgml:
- ./mandoc -Thtml -ostyle=style.css -Wall,error -fstrict $< > $@
+ ./mandoc $(MANDOCFLAGS) $(MANDOCHTML) $< > $@
.7.7.txt:
- ./mandoc -Wall,error -fstrict $< | col -b > $@
+ ./mandoc $(MANDOCFLAGS) $< | col -b > $@
.7.7.sgml:
- ./mandoc -Thtml -ostyle=style.css -Wall,error -fstrict $< > $@
+ ./mandoc $(MANDOCFLAGS) $(MANDOCHTML) $< > $@
.tar.gz.md5:
md5 $< > $@