=================================================================== RCS file: /cvs/mandoc/Makefile,v retrieving revision 1.167 retrieving revision 1.180 diff -u -p -r1.167 -r1.180 --- mandoc/Makefile 2009/04/03 13:18:26 1.167 +++ mandoc/Makefile 2009/06/15 20:26:47 1.180 @@ -1,4 +1,4 @@ -.SUFFIXES: .html .sgml +.SUFFIXES: .html .sgml .1.txt .3.txt .7.txt .1 .3 .7 BINDIR = $(PREFIX)/bin INCLUDEDIR = $(PREFIX)/include @@ -9,8 +9,8 @@ INSTALL_DATA = install -m 0444 INSTALL_LIB = install -m 0644 INSTALL_MAN = $(INSTALL_DATA) -VERSION = 1.7.9 -VDATE = 03 April 2009 +VERSION = 1.7.18 +VDATE = 15 June 2009 VFLAGS = -DVERSION=\"$(VERSION)\" CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g @@ -55,10 +55,13 @@ TARGZS = mdocml-$(VERSION).tar.gz \ mdocml-oport-$(VERSION).tar.gz \ mdocml-fport-$(VERSION).tar.gz \ mdocml-nport-$(VERSION).tar.gz -MANS = mandoc.1 mdoc.3 mdoc.7 manuals.7 +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 +CLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS) $(HTMLS) \ + $(TARGZS) tags $(TEXTS) ChangeLog MAKEFILES = Makefile.netbsd Makefile.openbsd Makefile.freebsd \ Makefile INSTALL = $(SRCS) $(HEADS) $(MAKEFILES) DESCR $(MANS) $(SGMLS) \ @@ -80,10 +83,11 @@ port: mdocml-oport-$(VERSION).tar.gz \ mdocml-fport-$(VERSION).tar.gz \ mdocml-nport-$(VERSION).tar.gz -www: $(HTMLS) $(TARGZS) +www: all $(HTMLS) $(TARGZS) $(TEXTS) ChangeLog installwww: www - install -m 0444 $(HTMLS) $(STATICS) $(PREFIX)/ + install -m 0444 $(TEXTS) $(HTMLS) $(STATICS) $(PREFIX)/ + install -m 0444 ChangeLog $(PREFIX)/snapshots/ install -m 0444 mdocml-$(VERSION).tar.gz $(PREFIX)/snapshots/ install -m 0444 mdocml-$(VERSION).tar.gz $(PREFIX)/snapshots/mdocml.tar.gz install -m 0444 mdocml-oport-$(VERSION).tar.gz $(PREFIX)/ports-openbsd/ @@ -154,6 +158,9 @@ man.o: man.c libman.h main.ln: main.c mdoc.h main.o: main.c mdoc.h +compat.ln: compat.c +compat.o: compat.c + term.ln: term.c term.h man.h mdoc.h term.o: term.c term.h man.h mdoc.h @@ -171,6 +178,9 @@ mdoc_action.o: mdoc_action.c libmdoc.h libmdoc.h: mdoc.h +ChangeLog: + cvs2cl -P -t --no-indent --FSF --no-times + mdocml-nport-$(VERSION).tar.gz: mdocml-$(VERSION).tar.gz Makefile.netbsd DESCR mkdir -p .dist/mdocml/ sed -e "s!@VERSION@!$(VERSION)!" Makefile.netbsd > \ @@ -194,7 +204,7 @@ mdocml-oport-$(VERSION).tar.gz: mdocml-$(VERSION).tar. rmd160 mdocml-$(VERSION).tar.gz >> .dist/mdocml/distinfo sha1 mdocml-$(VERSION).tar.gz >> .dist/mdocml/distinfo install -m 0644 DESCR .dist/mdocml/pkg/DESCR - echo @comment $$OpenBSD: Makefile,v 1.167 2009/04/03 13:18:26 kristaps Exp $$ > .dist/mdocml/pkg/PLIST + echo @comment $$OpenBSD: Makefile,v 1.180 2009/06/15 20:26:47 kristaps Exp $$ > .dist/mdocml/pkg/PLIST echo bin/mandoc >> .dist/mdocml/pkg/PLIST echo @man man/man1/mandoc.1 >> .dist/mdocml/pkg/PLIST echo @man man/man7/mdoc.7 >> .dist/mdocml/pkg/PLIST @@ -242,3 +252,12 @@ mandoc: $(MAINOBJS) libmdoc.a libman.a .sgml.html: validate $< sed -e "s!@VERSION@!$(VERSION)!" -e "s!@VDATE@!$(VDATE)!" $< > $@ + +.1.1.txt: + ./mandoc -Wall $< | col -b > $@ + +.3.3.txt: + ./mandoc -Wall $< | col -b > $@ + +.7.7.txt: + ./mandoc -Wall $< | col -b > $@