X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/b3bbf7061a5906d3086a9fa08f36d77d77302e81..732a70dcc1feb0cfcfd515f99f240a55a6af84f0:/Makefile diff --git a/Makefile b/Makefile index 29d51539..5c96bf96 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ .SUFFIXES: .html .sgml -VERSION = 1.3.3 +VERSION = 1.3.6 +VDATE = 27 February 2009 CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g @@ -50,8 +51,8 @@ BINS = mdocterm mdoctree mdoclint CLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS) $(HTMLS) \ $(TARGZS) -INSTALL = $(SRCS) $(HEADS) Makefile Makefile.port DESCR $(MANS) \ - $(SGMLS) $(STATICS) +INSTALL = $(SRCS) $(HEADS) Makefile DESCR $(MANS) $(SGMLS) \ + $(STATICS) Makefile.netbsd Makefile.openbsd FAIL = regress/test.empty \ regress/test.prologue.00 \ @@ -82,7 +83,13 @@ FAIL = regress/test.empty \ regress/test.escape.01 \ regress/test.escape.02 \ regress/test.escape.03 \ - regress/test.escape.04 + regress/test.escape.04 \ + regress/test.escape.06 \ + regress/test.escape.07 \ + regress/test.escape.08 \ + regress/test.escape.09 \ + regress/test.escape.11 \ + regress/test.escape.12 SUCCEED = regress/test.prologue.05 \ regress/test.prologue.07 \ @@ -108,7 +115,9 @@ SUCCEED = regress/test.prologue.05 \ regress/test.list.06 \ regress/test.sh.01 \ regress/test.sh.02 \ - regress/test.escape.00 + regress/test.escape.00 \ + regress/test.escape.05 \ + regress/test.escape.10 REGRESS = $(FAIL) $(SUCCEED) @@ -119,9 +128,12 @@ lint: $(LLNS) clean: rm -f $(CLEAN) +cleanlint: + rm -f $(LNS) $(LLNS) + dist: mdocml-$(VERSION).tar.gz -port: mdocml-oport-$(VERSION).tar.gz +port: mdocml-oport-$(VERSION).tar.gz mdocml-nport-$(VERSION).tar.gz www: $(HTMLS) $(TARGZS) @@ -132,7 +144,7 @@ installwww: www install -m 0444 mdocml-$(VERSION).tar.gz $(PREFIX)/snapshots/mdocml.tar.gz install -m 0444 mdocml-oport-$(VERSION).tar.gz $(PREFIX)/ports-openbsd/mdocml.tar.gz -regress:: +regress: mdoclint @for f in $(FAIL); do \ echo "./mdoclint $$f" ; \ ./mdoclint $$f 2>/dev/null || continue ; exit 1 ; done @@ -211,9 +223,30 @@ mmain.h: mdoc.h term.h: mdoc.h -mdocml-oport-$(VERSION).tar.gz: mdocml-$(VERSION).tar.gz Makefile.port DESCR +mdocml-nport-$(VERSION).tar.gz: mdocml-$(VERSION).tar.gz Makefile.netbsd DESCR + mkdir -p .dist/mdocml/ + sed -e "s!@VERSION@!$(VERSION)!" Makefile.netbsd > \ + .dist/mdocml/Makefile + md5 mdocml-$(VERSION).tar.gz > .dist/mdocml/distinfo + rmd160 mdocml-$(VERSION).tar.gz >> .dist/mdocml/distinfo + sha1 mdocml-$(VERSION).tar.gz >> .dist/mdocml/distinfo + install -m 0644 DESCR .dist/mdocml/ + echo @comment $$NetBSD$$ > .dist/mdocml/PLIST + echo bin/mdocterm >> .dist/mdocml/PLIST + echo bin/mdoctree >> .dist/mdocml/PLIST + echo bin/mdoclint >> .dist/mdocml/PLIST + echo lib/libmdoc.a >> .dist/mdocml/PLIST + echo include/mdoc.h >> .dist/mdocml/PLIST + echo man/man1/mdoctree.1 >> .dist/mdocml/PLIST + echo man/man1/mdocterm.1 >> .dist/mdocml/PLIST + echo man/man1/mdoclint.1 >> .dist/mdocml/PLIST + echo man/man3/mdoc.3 >> .dist/mdocml/PLIST + ( cd .dist/ && tar zcf ../$@ mdocml/ ) + rm -rf .dist/ + +mdocml-oport-$(VERSION).tar.gz: mdocml-$(VERSION).tar.gz Makefile.openbsd DESCR mkdir -p .dist/mdocml/pkg - sed -e "s!@VERSION@!$(VERSION)!" Makefile.port > \ + sed -e "s!@VERSION@!$(VERSION)!" Makefile.openbsd > \ .dist/mdocml/Makefile md5 mdocml-$(VERSION).tar.gz > .dist/mdocml/distinfo rmd160 mdocml-$(VERSION).tar.gz >> .dist/mdocml/distinfo @@ -263,4 +296,5 @@ mdoclint: $(LINTOBJS) libmdoc.a .sgml.html: validate $< - cp -f $< $@ + sed -e "s!@VERSION@!$(VERSION)!" -e "s!@VDATE@!$(VDATE)!" $< > $@ +