summaryrefslogtreecommitdiffstats
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
commit83fa9f1e2d9cea33837b5bedf4932e24a73c253a (patch)
treee36ef6f42bdefd5a7dac0e4dd2adf445b40cdff5 /Makefile
parent38978c6f40cc37f32a8799d8b8e7e31e051eb2f1 (diff)
downloadmandoc-83fa9f1e2d9cea33837b5bedf4932e24a73c253a.tar.gz
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 $< > $@