From: Mark Wooding Date: Thu, 5 Apr 2012 12:44:02 +0000 (+0100) Subject: Make Postscript and PDF versions of the documentation. X-Git-Tag: 1.2.1~5 X-Git-Url: https://git.distorted.org.uk/~mdw/mdwfonts/commitdiff_plain/407a7e928010fa53c289b3d3b4f083436d3ebeda Make Postscript and PDF versions of the documentation. --- diff --git a/.gitignore b/.gitignore index b811568..a898b2c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ config.log config.status install-sh missing +mdwfonts.tex gpl.tex *.dvi *.log @@ -28,3 +29,5 @@ p*.pl *.idx *.ilg *.ind +*.ps +*.pdf diff --git a/Makefile.m4 b/Makefile.m4 index dff61c0..1f1499b 100644 --- a/Makefile.m4 +++ b/Makefile.m4 @@ -1,4 +1,4 @@ -## -*-makefile-*- +## -*-m4-*- ## ## Build system for mdwfonts ## @@ -13,12 +13,12 @@ ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. -## +## ## mdwfonts is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. -## +## ## You should have received a copy of the GNU General Public License ## along with mdwfonts; if not, write to the Free Software Foundation, ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -46,6 +46,8 @@ define(`VFBASE', `\ AUX = gpl.tex SRC = addsuffix(BASE, `.dtx') DVI = addsuffix(BASE, `.dvi') +PS = addsuffix(BASE, `.ps') +PDF = addsuffix(BASE, `.pdf') ETX = ot1tt.etx ot1ctt.etx INS = mdwfonts.sty mdwfonts.tex mttpcr.fd MAP = mdwfonts.map @@ -56,13 +58,13 @@ TFM = addsuffix(TFMBASE, `.tfm') addsuffix(VFBASE, `.tfm') VF = addsuffix(VFBASE, `.vf') pkglatex_DATA = $(INS) $(FD) -pkgdoc_DATA = $(DVI) +pkgdoc_DATA = $(DVI) $(PS) $(PDF) pkgtfm_DATA = $(TFM) pkgvf_DATA = $(VF) pkgetx_DATA = $(ETX) pkmap_DATA = $(MAP) -SUFFIXES = .dtx .dvi .vf .tfm .pl .vpl +SUFFIXES = .dtx .dvi .vf .tfm .pl .vpl .ps .pdf define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<" latex "\def\indexing{y} \nonstopmode \input $<" makeindex -s gind.ist $`'*.idx @@ -70,6 +72,8 @@ define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<" $(DVI): $(AUX) $(INS) .dtx.dvi: run_latex +.dvi.ps:; dvips $< +.ps.pdf:; ps2pdf $< $@ .vpl.tfm:; vptovf $< .pl.tfm:; pltotf $< .vpl.vf:; vptovf $< @@ -86,7 +90,7 @@ EXTRA_DIST = \ MAINTAINERCLEANFILES = $(INS) $(ETX) $(TFM) $(VF) $(DVI) *.fd CLEANFILES = \ *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans *.vpl \ - p*.pl p*.mtx c*.mtx + p*.pl p*.mtx c*.mtx *.ps *.pdf Makefile.am: Makefile.m4 cd $(srcdir) && m4 Makefile.m4 >Makefile.am