X-Git-Url: https://git.distorted.org.uk/~mdw/mdwtools/blobdiff_plain/e8e9e5d812460c19d276d9449a1792e2b384eb20..6d6d46d23ef867934608b1362b3ae754e7af7156:/Makefile.m4 diff --git a/Makefile.m4 b/Makefile.m4 index 939f342..cb7827d 100644 --- a/Makefile.m4 +++ b/Makefile.m4 @@ -25,9 +25,8 @@ AUTOMAKE_OPTIONS = foreign -texmfpath = @texmfpath@ -pkglatexdir = ${texmfpath}/tex/latex/${PACKAGE} -pkgdocdir = ${texmfpath}/doc/latex/${PACKAGE} +pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE} +pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE} define(`addsuffix', `patsubst(`$1', `\>', `$2')') define(`BASE', `\ @@ -38,6 +37,7 @@ AUX = mdwtools.tex gpl.tex SRC = addsuffix(BASE, `.dtx') DVI = addsuffix(BASE, `.dvi') mdwtools.dvi PS = addsuffix(BASE, `.ps') mdwtools.ps +PDF = addsuffix(BASE, `.pdf') mdwtools.pdf OBJ = \ at.sty \ cmtt.sty mttcmtt.fd mttenc.def \ @@ -59,7 +59,7 @@ OBJ = \ syntax.sty pkglatex_DATA = $(OBJ) mdwtools.tex -pkgdoc_DATA = $(DVI) $(PS) +pkgdoc_DATA = $(DVI) $(PS) $(PDF) SUFFIXES = .dtx .tex .dvi .ps define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<" @@ -73,6 +73,8 @@ define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<" run_latex .dvi.ps: dvips -e0 -o $@ $< +.ps.pdf: + ps2pdf $< $@ $(DVI): gpl.tex $(OBJ) mdwtools.tex