INSTALL_LIB = install -m 0644
INSTALL_MAN = $(INSTALL_DATA)
-VERSION = 1.9.8
-VDATE = 10 October 2009
+VERSION = 1.9.13
+VDATE = 02 November 2009
-VFLAGS = -DVERSION=\"$(VERSION)\"
+VFLAGS = -DVERSION="\"$(VERSION)\""
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -g
CFLAGS += $(VFLAGS)
+#CFLAGS += -DOSNAME="\"OpenBSD 4.5\""
LINTFLAGS += $(VFLAGS)
-MANDOCFLAGS = -Wall -fstrict
-MANDOCHTML = -Thtml -ostyle=style.css,man=%N.%S.html,includes=%I.html
+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 \
libmandoc.h html.h chars.h out.h main.h
GSGMLS = mandoc.1.sgml mdoc.3.sgml mdoc.7.sgml manuals.7.sgml \
mandoc_char.7.sgml man.7.sgml man.3.sgml
-SGMLS = index.sgml $(GSGMLS)
+SGMLS = index.sgml
+HTMLS = ChangeLog.html index.html
XSLS = ChangeLog.xsl
-HTMLS = index.html mandoc.1.html mdoc.3.html \
- man.3.html mdoc.7.html man.7.html mandoc_char.7.html \
- manuals.7.html
+GHTMLS = mandoc.1.html mdoc.3.html man.3.html mdoc.7.html \
+ man.7.html mandoc_char.7.html manuals.7.html
TEXTS = mandoc.1.txt mdoc.3.txt man.3.txt mdoc.7.txt man.7.txt \
mandoc_char.7.txt manuals.7.txt ChangeLog.txt
EXAMPLES = example.style.css
man.7 man.3
BINS = mandoc
CLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS) $(HTMLS) \
- $(TARGZS) tags $(MD5S) $(XMLS) $(TEXTS) $(GSGMLS)
+ $(TARGZS) tags $(MD5S) $(XMLS) $(TEXTS) $(GSGMLS) \
+ $(GHTMLS)
INSTALL = $(SRCS) $(HEADS) Makefile $(MANS) $(SGMLS) $(STATICS) \
$(DATAS) $(XSLS) $(EXAMPLES)
cleanlint:
rm -f $(LNS) $(LLNS)
+cleanhtml:
+ rm -f $(HTMLS) $(GSGMLS) $(GHTMLS)
+
dist: mdocml-$(VERSION).tar.gz
-www: all $(HTMLS) $(TEXTS) $(MD5S) $(TARGZS)
+www: all $(GSGMLS) $(GHTMLS) $(HTMLS) $(TEXTS) $(MD5S) $(TARGZS)
+
+htmls: all $(GSGMLS) $(GHTMLS)
installwww: www
- install -m 0444 $(HTMLS) $(TEXTS) $(STATICS) $(PREFIX)/
+ install -m 0444 $(GHTMLS) $(HTMLS) $(TEXTS) $(STATICS) $(PREFIX)/
install -m 0444 mdocml-$(VERSION).tar.gz $(PREFIX)/snapshots/
install -m 0444 mdocml-$(VERSION).md5 $(PREFIX)/snapshots/
install -m 0444 mdocml-$(VERSION).tar.gz $(PREFIX)/snapshots/mdocml.tar.gz
$(CC) $(CFLAGS) -o $@ $(MAINOBJS) libmdoc.a libman.a
.sgml.html:
- validate $<
+ validate --warn $<
sed -e "s!@VERSION@!$(VERSION)!" -e "s!@VDATE@!$(VDATE)!" $< > $@
.1.1.txt .3.3.txt .7.7.txt:
./mandoc $(MANDOCFLAGS) $< | col -b > $@
-.1.1.sgml 3.3.sgml .7.7.sgml:
+.1.1.sgml .3.3.sgml .7.7.sgml:
./mandoc $(MANDOCFLAGS) $(MANDOCHTML) $< > $@
.tar.gz.md5: