diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -1,4 +1,4 @@ -.SUFFIXES: .html .xml .sgml .1 .3 .7 .md5 .tar.gz .1.txt .3.txt .7.txt .1.sgml .3.sgml .7.sgml .h .h.html +.SUFFIXES: .html .xml .sgml .1 .3 .7 .md5 .tar.gz .1.txt .3.txt .7.txt .1.sgml .3.sgml .7.sgml .h .h.html .1.ps .3.ps .7.ps PREFIX = /usr/local BINDIR = $(PREFIX)/bin @@ -33,6 +33,8 @@ MANDOCFLAGS = -Wall -fstrict MANDOCHTML = -Thtml -Ostyle=style.css,man=%N.%S.html,includes=%I.html +MANDOCPS = -Tps + ROFFLNS = roff.ln ROFFSRCS = roff.c @@ -107,6 +109,9 @@ HTMLS = ChangeLog.html index.html man.h.html mdoc.h.html \ man.3.html mdoc.7.html man.7.html mandoc_char.7.html \ roff.7.html roff.3.html +PSS = mandoc.1.ps mdoc.3.ps man.3.ps mdoc.7.ps man.7.ps \ + mandoc_char.7.ps roff.7.ps roff.3.ps + XSLS = ChangeLog.xsl TEXTS = mandoc.1.txt mdoc.3.txt man.3.txt mdoc.7.txt man.7.txt \ @@ -134,7 +139,7 @@ CONFIGS = config.h.pre config.h.post DOCLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS) $(HTMLS) \ $(TARGZS) tags $(MD5S) $(XMLS) $(TEXTS) $(GSGMLS) \ - config.h config.log + config.h config.log $(PSS) DOINSTALL = $(SRCS) $(HEADS) Makefile $(MANS) $(SGMLS) $(STATICS) \ $(DATAS) $(XSLS) $(EXAMPLES) $(TESTS) $(CONFIGS) @@ -146,15 +151,11 @@ lint: $(LLNS) clean: rm -f $(DOCLEAN) -cleanlint: - rm -f $(LNS) $(LLNS) - -cleanhtml: - rm -f $(HTMLS) $(GSGMLS) - dist: mdocml-$(VERSION).tar.gz -www: all $(GSGMLS) $(HTMLS) $(TEXTS) $(MD5S) $(TARGZS) +www: all $(GSGMLS) $(HTMLS) $(TEXTS) $(MD5S) $(TARGZS) $(PSS) + +ps: $(PSS) installwww: www $(INSTALL_DATA) $(HTMLS) $(TEXTS) $(STATICS) $(DESTDIR)$(PREFIX)/ @@ -301,6 +302,9 @@ mandoc: $(MAINOBJS) libroff.a libmdoc.a libman.a libmandoc.a .1.1.sgml .3.3.sgml .7.7.sgml: ./mandoc $(MANDOCFLAGS) $(MANDOCHTML) $< > $@ +.1.1.ps .3.3.ps .7.7.ps: + ./mandoc $(MANDOCFLAGS) $(MANDOCPS) $< > $@ + .tar.gz.md5: md5 $< > $@ |