=================================================================== RCS file: /cvs/mandoc/Makefile,v retrieving revision 1.221 retrieving revision 1.235 diff -u -p -r1.221 -r1.235 --- mandoc/Makefile 2009/09/25 14:07:51 1.221 +++ mandoc/Makefile 2009/10/26 09:00:41 1.235 @@ -9,14 +9,18 @@ INSTALL_DATA = install -m 0444 INSTALL_LIB = install -m 0644 INSTALL_MAN = $(INSTALL_DATA) -VERSION = 1.9.6 -VDATE = 25 September 2009 +VERSION = 1.9.10 +VDATE = 26 October 2009 -VFLAGS = -DVERSION=\"$(VERSION)\" -CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g +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 + MDOCLNS = mdoc_macro.ln mdoc.ln mdoc_hash.ln mdoc_strings.ln \ mdoc_argv.ln mdoc_validate.ln mdoc_action.ln \ lib.ln att.ln arch.ln vol.ln msec.ln st.ln \ @@ -37,11 +41,11 @@ MANSRCS = man_macro.c man.c man_hash.c man_validate MAINLNS = main.ln mdoc_term.ln chars.ln term.ln tree.ln \ compat.ln man_term.ln html.ln mdoc_html.ln \ - man_html.ln + man_html.ln out.ln MAINOBJS = main.o mdoc_term.o chars.o term.o tree.o compat.o \ - man_term.o html.o mdoc_html.o man_html.o + man_term.o html.o mdoc_html.o man_html.o out.o MAINSRCS = main.c mdoc_term.c chars.c term.c tree.c compat.c \ - man_term.c html.c mdoc_html.c man_html.c + man_term.c html.c mdoc_html.c man_html.c out.c LLNS = llib-llibmdoc.ln llib-llibman.ln llib-lmandoc.ln LNS = $(MAINLNS) $(MDOCLNS) $(MANLNS) @@ -51,12 +55,12 @@ SRCS = $(MDOCSRCS) $(MAINSRCS) $(MANSRCS) DATAS = arch.in att.in lib.in msec.in st.in \ vol.in chars.in HEADS = mdoc.h libmdoc.h man.h libman.h term.h \ - libmandoc.h html.h chars.h + 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) XSLS = ChangeLog.xsl -HTMLS = index.html mandoc.1.html mdoc.3.html \ +HTMLS = index.html mandoc.1.html mdoc.3.html ChangeLog.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 \ @@ -168,9 +172,12 @@ html.o: html.c html.h chars.h mdoc_html.ln: mdoc_html.c html.h mdoc.h mdoc_html.o: mdoc_html.c html.h mdoc.h -man_html.ln: man_html.c html.h man.h -man_html.o: man_html.c html.h man.h +man_html.ln: man_html.c html.h man.h out.h +man_html.o: man_html.c html.h man.h out.h +out.ln: out.c out.h +out.o: out.c out.h + tree.ln: tree.c man.h mdoc.h tree.o: tree.c man.h mdoc.h @@ -225,26 +232,14 @@ mandoc: $(MAINOBJS) libmdoc.a libman.a $(CC) $(CFLAGS) -o $@ $(MAINOBJS) libmdoc.a libman.a .sgml.html: - validate $< + #validate $< sed -e "s!@VERSION@!$(VERSION)!" -e "s!@VDATE@!$(VDATE)!" $< > $@ -.1.1.txt: - ./mandoc -Wall,error -fstrict $< | col -b > $@ +.1.1.txt .3.3.txt .7.7.txt: + ./mandoc $(MANDOCFLAGS) $< | col -b > $@ -.1.1.sgml: - ./mandoc -Thtml -ostyle=style.css -Wall,error -fstrict $< > $@ - -.3.3.txt: - ./mandoc -Wall,error -fstrict $< | col -b > $@ - -.3.3.sgml: - ./mandoc -Thtml -ostyle=style.css -Wall,error -fstrict $< > $@ - -.7.7.txt: - ./mandoc -Wall,error -fstrict $< | col -b > $@ - -.7.7.sgml: - ./mandoc -Thtml -ostyle=style.css -Wall,error -fstrict $< > $@ +.1.1.sgml .3.3.sgml .7.7.sgml: + ./mandoc $(MANDOCFLAGS) $(MANDOCHTML) $< > $@ .tar.gz.md5: md5 $< > $@