=================================================================== RCS file: /cvs/mandoc/Makefile,v retrieving revision 1.210 retrieving revision 1.213 diff -u -p -r1.210 -r1.213 --- mandoc/Makefile 2009/09/17 07:41:28 1.210 +++ mandoc/Makefile 2009/09/21 13:44:56 1.213 @@ -1,4 +1,4 @@ -.SUFFIXES: .html .xml .sgml .1.txt .3.txt .7.txt .1 .3 .7 .md5 .tar.gz +.SUFFIXES: .html .xml .sgml .1 .3 .7 .md5 .tar.gz .1.html .3.html .7.html BINDIR = $(PREFIX)/bin INCLUDEDIR = $(PREFIX)/include @@ -51,18 +51,18 @@ DATAS = arch.in att.in lib.in msec.in st.in vol.in HEADS = mdoc.h libmdoc.h man.h libman.h term.h libmandoc.h SGMLS = index.sgml XSLS = ChangeLog.xsl -HTMLS = index.html ChangeLog.html +HTMLS = index.html ChangeLog.html mandoc.1.html mdoc.3.html \ + man.3.html mdoc.7.html man.7.html mandoc_char.7.html \ + manuals.7.html XMLS = ChangeLog.xml -STATICS = style.css external.png +STATICS = index.css style.css external.png MD5S = mdocml-$(VERSION).md5 TARGZS = mdocml-$(VERSION).tar.gz MANS = mandoc.1 mdoc.3 mdoc.7 manuals.7 mandoc_char.7 \ man.7 man.3 -TEXTS = mandoc.1.txt mdoc.3.txt mdoc.7.txt manuals.7.txt \ - mandoc_char.7.txt man.7.txt man.3.txt BINS = mandoc CLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS) $(HTMLS) \ - $(TARGZS) tags $(TEXTS) $(MD5S) $(XMLS) + $(TARGZS) tags $(MD5S) $(XMLS) INSTALL = $(SRCS) $(HEADS) Makefile $(MANS) $(SGMLS) $(STATICS) \ $(DATAS) $(XSLS) @@ -78,12 +78,10 @@ cleanlint: dist: mdocml-$(VERSION).tar.gz -html: $(HTMLS) +www: all $(HTMLS) $(MD5S) $(TARGZS) -www: all $(HTMLS) $(MD5S) $(TARGZS) $(TEXTS) - installwww: www - install -m 0444 $(TEXTS) $(HTMLS) $(STATICS) $(PREFIX)/ + install -m 0444 $(HTMLS) $(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 @@ -216,11 +214,20 @@ mandoc: $(MAINOBJS) libmdoc.a libman.a .1.1.txt: ./mandoc -Wall,error -fstrict $< | col -b > $@ +.1.1.html: + ./mandoc -Thtml -ostyle=style.css -Wall,error -fstrict $< > $@ + .3.3.txt: ./mandoc -Wall,error -fstrict $< | col -b > $@ +.3.3.html: + ./mandoc -Thtml -ostyle=style.css -Wall,error -fstrict $< > $@ + .7.7.txt: ./mandoc -Wall,error -fstrict $< | col -b > $@ + +.7.7.html: + ./mandoc -Thtml -ostyle=style.css -Wall,error -fstrict $< > $@ .tar.gz.md5: md5 $< > $@