=================================================================== RCS file: /cvs/mandoc/Makefile,v retrieving revision 1.184 retrieving revision 1.185 diff -u -p -r1.184 -r1.185 --- mandoc/Makefile 2009/06/22 13:13:10 1.184 +++ mandoc/Makefile 2009/06/25 08:42:06 1.185 @@ -1,4 +1,4 @@ -.SUFFIXES: .html .sgml .1.txt .3.txt .7.txt .1 .3 .7 +.SUFFIXES: .html .sgml .1.txt .3.txt .7.txt .1 .3 .7 .md5 .tar.gz BINDIR = $(PREFIX)/bin INCLUDEDIR = $(PREFIX)/include @@ -51,6 +51,10 @@ HEADS = mdoc.h libmdoc.h man.h libman.h term.h SGMLS = index.sgml HTMLS = index.html STATICS = style.css external.png +MD5S = mdocml-$(VERSION).md5 \ + mdocml-oport-$(VERSION).md5 \ + mdocml-fport-$(VERSION).md5 \ + mdocml-nport-$(VERSION).md5 TARGZS = mdocml-$(VERSION).tar.gz \ mdocml-oport-$(VERSION).tar.gz \ mdocml-fport-$(VERSION).tar.gz \ @@ -79,12 +83,12 @@ cleanlint: dist: mdocml-$(VERSION).tar.gz -port: mdocml-oport-$(VERSION).tar.gz \ - mdocml-fport-$(VERSION).tar.gz \ - mdocml-nport-$(VERSION).tar.gz +html: $(HTMLS) -www: all $(HTMLS) $(TARGZS) $(TEXTS) ChangeLog +md5: $(MD5) +www: all $(TARGZS) $(TEXTS) ChangeLog + installwww: www install -m 0444 $(TEXTS) $(HTMLS) $(STATICS) $(PREFIX)/ install -m 0444 ChangeLog $(PREFIX)/snapshots/ @@ -204,7 +208,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.184 2009/06/22 13:13:10 kristaps Exp $$ > .dist/mdocml/pkg/PLIST + echo @comment $$OpenBSD: Makefile,v 1.185 2009/06/25 08:42:06 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 @@ -261,3 +265,6 @@ mandoc: $(MAINOBJS) libmdoc.a libman.a .7.7.txt: ./mandoc -Wall,error -fstrict $< | col -b > $@ + +.tar.gz.md5: + md5 $< $@