diff options
Diffstat (limited to 'Master/texmf-dist/source/generic/pst-pdf/Makefile')
-rw-r--r-- | Master/texmf-dist/source/generic/pst-pdf/Makefile | 49 |
1 files changed, 37 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/generic/pst-pdf/Makefile b/Master/texmf-dist/source/generic/pst-pdf/Makefile index 81332c1c20e..d3ca2eb8e73 100644 --- a/Master/texmf-dist/source/generic/pst-pdf/Makefile +++ b/Master/texmf-dist/source/generic/pst-pdf/Makefile @@ -1,5 +1,5 @@ -# `pst-pdf' -- Rolf Niepraschk, 2005/03/25, Rolf.Niepraschk@ptb.de +# `pst-pdf' -- Rolf Niepraschk, 2006/07/23, Rolf.Niepraschk@ptb.de .SUFFIXES : .tex .ltx .dvi .ps .pdf .eps @@ -21,23 +21,34 @@ ADDINPUTS = penguin.eps elephant.ps knuth.png psf-demo.eps \ PDF_CONTAINER = $(EXAMPLE:.tex=-pics.pdf) ARCHFILES = $(PACKAGE).dtx $(PACKAGE).ins $(ADDINPUTS) Makefile \ - ps4pdf CHANGES \ - CHANGES.tex ps4pdf.bat ps4pdf.bat.w95 - #ppf-example.tex TODO - #pstricks2.sty pstricks2.tex pstricks2.pro pst-dots2.pro + README CHANGES CHANGES.tex \ + $(PACKAGE).pdf $(PACKAGE)-DE.pdf $(EXAMPLE:.tex=.pdf) \ + scripts/ps4pdf \ + scripts/ps4pdf.bat \ + scripts/ps4pdf.bat.noMiKTeX \ + scripts/ps4pdf.bat.w95 \ PS2PDF = GS_OPTIONS=-dPDFSETTINGS=/prepress ps2pdf -all : pdf +all : pdf doc example pdf : $(EXAMPLE:.tex=.pdf) doc : $(PACKAGE).pdf +doc-DE : $(PACKAGE)-DE.pdf + +example : $(EXAMPLE:.tex=.pdf) + $(EXAMPLE:.tex=.pdf) : $(EXAMPLE) $(ADDINPUTS) $(PDF_CONTAINER) $(PACKAGE).sty $(PDFLATEX) $< + +dist : doc doc-DE pdf example + tar cvzf $(ARCHNAME).tar.gz $(ARCHFILES) + @ echo + @ echo $(ARCHNAME).tar.gz -%.pdf : %.dtx $(PACKAGE).sty +%.gls %.pdf : %.dtx $(PACKAGE).sty test -f $(basename $<).glo || touch -f $(basename $<).glo test -f $(basename $<).idx || touch -f $(basename $<).idx makeindex -s gglo.ist -t $(basename $<).glg -o $(basename $<).gls \ @@ -46,6 +57,17 @@ $(EXAMPLE:.tex=.pdf) : $(EXAMPLE) $(ADDINPUTS) $(PDF_CONTAINER) $(PACKAGE).sty $(basename $<).idx $(PDFLATEX) $< +$(PACKAGE)-DE.gls $(PACKAGE)-DE.pdf : $(PACKAGE).dtx $(PACKAGE).sty + test -f $(basename $@).glo || touch -f $(basename $@).glo + test -f $(basename $@).idx || touch -f $(basename $@).idx + makeindex -s gglo.ist -t $(basename $@).glg -o $(basename $@).gls \ + $(basename $@).glo + makeindex -s gind.ist -t $(basename $@).ilg -o $(basename $@).ind \ + $(basename $@).idx + cp $< $(basename $@).dtx + $(PDFLATEX) '\newcommand*{\mainlang}{ngerman}\input{$(basename $@).dtx}' + $(RM) $(basename $@).dtx + %.pdf : %.tex $(PDFLATEX) $< @@ -66,10 +88,12 @@ $(PDF_CONTAINER) : $(PDF_CONTAINER:.pdf=.ps) $(PS2PDF) $< $@; \ fi -CHANGES : CHANGES.tex $(PACKAGE).pdf - $(PDFLATEX) $< - pdftotext -layout -nopgbrk $(<:.tex=.pdf) $@ +CHANGES : CHANGES.pdf + pdftotext -layout -nopgbrk $< $@ +CHANGES.pdf : CHANGES.tex $(PACKAGE).gls + $(PDFLATEX) $< + arch : CHANGES zip $(ARCHNAME).zip $(ARCHFILES) @@ -77,9 +101,10 @@ clean : $(RM) $(addprefix $(PACKAGE), \ .dvi .log .aux .bbl .blg .idx .ind .ilg .gls .glg .glo) \ $(addprefix $(basename $(EXAMPLE)), .ps .dvi .log .aux) \ - $(EXAMPLE) $(PDF_CONTAINER:.pdf=.ps) $(PDF_CONTAINER) + $(EXAMPLE) $(PDF_CONTAINER:.pdf=.ps) $(PDF_CONTAINER) \ + CHANGES.pdf veryclean : clean - $(RM) $(PACKAGE).pdf $(EXAMPLE:.tex=.pdf) + $(RM) $(PACKAGE).pdf pst-pdf-DE.pdf $(EXAMPLE:.tex=.pdf) CHANGES # EOF |