SRC = $(wildcard man1/*.1) PDF = $(patsubst %.1, %.pdf, $(SRC)) MKPDF = $(GROFF) $(PDFOPTS) $< | $(PSPDF) - $@ all: pdf pdf: $(PDF) clean: @echo 'Removing pdf files.' @rm -f -- $(PDF) %.pdf: %.1 $(MKPDF) # The rules below are generated by the following script (from '../') # grep '^.so ' man1/* | \ # sed -e 's/^\(.*\)\.1:\.so \(.*\)\.1$/\1.pdf: \1.1 \2.1\n\t$(MKPDF)\n/' # and should be updated from time to time. man1/allec.pdf: man1/allec.1 man1/allcm.1 $(MKPDF) man1/ctangle.pdf: man1/ctangle.1 man1/cweb.1 $(MKPDF) man1/cweave.pdf: man1/cweave.1 man1/cweb.1 $(MKPDF) man1/dvilj2p.pdf: man1/dvilj2p.1 man1/dvilj.1 $(MKPDF) man1/dvilj4.pdf: man1/dvilj4.1 man1/dvilj.1 $(MKPDF) man1/dvilj4l.pdf: man1/dvilj4l.1 man1/dvilj.1 $(MKPDF) man1/dvilj6.pdf: man1/dvilj6.1 man1/dvilj.1 $(MKPDF) man1/fmtutil-sys.pdf: man1/fmtutil-sys.1 man1/fmtutil.1 $(MKPDF) man1/getnonfreefonts-sys.pdf: man1/getnonfreefonts-sys.1 man1/getnonfreefonts.1 $(MKPDF) man1/kpsepath.pdf: man1/kpsepath.1 man1/kpsetool.1 $(MKPDF) man1/kpsexpand.pdf: man1/kpsexpand.1 man1/kpsetool.1 $(MKPDF) man1/lambda.pdf: man1/lambda.1 man1/omega.1 $(MKPDF) man1/mf-nowin.pdf: man1/mf-nowin.1 man1/mf.1 $(MKPDF) man1/mktexfmt.pdf: man1/mktexfmt.1 man1/fmtutil.1 $(MKPDF) man1/odvicopy.pdf: man1/odvicopy.1 man1/dvicopy.1 $(MKPDF) man1/odvips.pdf: man1/odvips.1 man1/dvips.1 $(MKPDF) man1/odvitype.pdf: man1/odvitype.1 man1/dvitype.1 $(MKPDF) man1/oxdvi.pdf: man1/oxdvi.1 man1/xdvi.1 $(MKPDF) man1/pdflatex.pdf: man1/pdflatex.1 man1/pdftex.1 $(MKPDF) man1/texconfig-sys.pdf: man1/texconfig-sys.1 man1/texconfig.1 $(MKPDF) man1/texhash.pdf: man1/texhash.1 man1/mktexlsr.1 $(MKPDF) man1/texlua.pdf: man1/texlua.1 man1/luatex.1 $(MKPDF) man1/texluac.pdf: man1/texluac.1 man1/luatex.1 $(MKPDF) man1/updmap-sys.pdf: man1/updmap-sys.1 man1/updmap.1 $(MKPDF)