X-Git-Url: https://git.distorted.org.uk/~mdw/mdwtools/blobdiff_plain/65bf31fc643d28b01c3dd4f794cf54469909fbf8..d3d35d4b9cd15420d2111264dab1977517b1d02e:/Makefile.m4 diff --git a/Makefile.m4 b/Makefile.m4 index 18a829b..dc039ce 100644 --- a/Makefile.m4 +++ b/Makefile.m4 @@ -37,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 \ @@ -58,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 $<" @@ -72,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 @@ -87,6 +90,10 @@ Makefile.am: Makefile.m4 m4 $(srcdir)/Makefile.m4 >Makefile.am.new mv Makefile.am.new $(srcdir)/Makefile.am +dist-hook:: + echo $(VERSION) >$(distdir)/RELEASE +EXTRA_DIST += auto-version + .PHONY: dvi ##----- That's all, folks ---------------------------------------------------