diff options
author | Karl Berry <karl@freefriends.org> | 2010-06-12 00:12:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-06-12 00:12:11 +0000 |
commit | 452c9d0af12acb085390fe26cc37a9e93d689d5a (patch) | |
tree | 2a28496b755aa54c3ca3a7c8de80510899f14dbb /Master/texmf-dist/source | |
parent | 3ca859b7c25a23c6fa253978191197782df3d799 (diff) |
pst-magneticfield 1.12 (11jun10)
git-svn-id: svn://tug.org/texlive/trunk@18901 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/generic/pst-magneticfield/Makefile | 83 |
1 files changed, 48 insertions, 35 deletions
diff --git a/Master/texmf-dist/source/generic/pst-magneticfield/Makefile b/Master/texmf-dist/source/generic/pst-magneticfield/Makefile index 96b8b8a3ef4..5ab44b5e071 100644 --- a/Master/texmf-dist/source/generic/pst-magneticfield/Makefile +++ b/Master/texmf-dist/source/generic/pst-magneticfield/Makefile @@ -1,55 +1,70 @@ -# `Makefile' for `pst-magneticfield.pdf', hv, 2007/03/17 +# `Makefile' for `pst-magneticfield.pdf', Rolf Niepraschk, 2010/05/21 -.SUFFIXES : .tex .ltx .dvi .ps .pdf .eps +.SUFFIXES : .tex .ltx .dvi .ps .pdf .eps .pro PACKAGE = pst-magneticfield +MAIN = $(PACKAGE)-doc +LANGUAGES = FR -MAIN = $(PACKAGE)-docFR +empty= +space=$(empty) $(empty) +DOC_SOURCES = $(addprefix $(PACKAGE)-doc,$(LANGUAGES)$(space)) +DOC_SOURCES := $(addsuffix .tex, $(DOC_SOURCES)) +DOCS = $(DOC_SOURCES:.tex=.pdf) TDS = ~/PSTricks/PSTricks-TDS -LATEX = latex +LATEX = pst2pdf +PDFLATEX = pdflatex +OPTIONS= --Iext=.png --Iscale=0.5 --DPI=150 -ARCHNAME = $(MAIN)-$(shell date +%y%m%d) +ARCHNAME = $(PACKAGE)-$(shell date +%Y%m%d) -ARCHFILES = $(PACKAGE).sty $(PACKAGE).tex $(PACKAGE).pro $(MAIN).tex README Changes Makefile +#PRO = foo.pro -all : doc clean tds -doc: $(MAIN).pdf +ARCHFILES = $(PACKAGE).sty $(PACKAGE).tex $(PACKAGE).pro $(DOC_SOURCES) \ + README Changes Makefile -$(MAIN).pdf : $(MAIN).ps - GS_OPTIONS=-dAutoRotatePages=/None ps2pdf $< +all : $(DOCS) clean -$(MAIN).ps : $(MAIN).dvi - dvips $< +%.pdf : %.tex + $(LATEX) $(basename $<) $(OPTIONS) +# makeindex -s gglo.ist -t $(basename $<)-pdf.glg -o $(basename $<)-pdf.gls $(basename $<)-pdf.glo + makeindex -s pst-doc.ist -t $(basename $<)-pdf.ilg -o $(basename $<)-pdf.ind $(basename $<)-pdf.idx + bibtex $(basename $<)-pdf + $(PDFLATEX) $(basename $<)-pdf + $(PDFLATEX) $(basename $<)-pdf + mv $(basename $<)-pdf.pdf $(basename $<).pdf + rm -f $(basename $<)-tmp.* $(basename $<)-pdf.* -$(MAIN).dvi : $(MAIN).tex - $(LATEX) $< - $(LATEX) $< - if ! test -f $(basename $<).glo ; then touch $(basename $<).glo; fi - if ! test -f $(basename $<).idx ; then touch $(basename $<).idx; fi - makeindex -t $(basename $<).ilg -s pst-doc.ist -o $(basename $<).ind $(basename $<).idx - makeindex -s gglo.ist -t $(basename $<).glg -o $(basename $<).gls \ - $(basename $<).glo - bibtex $(basename $<) - $(LATEX) $< - $(LATEX) $< - -clean : - $(RM) $(addprefix $(MAIN), .log .aux .glg .glo .gls .ilg .idx .ind .tmp .toc .out .blg .bbl ) - $(RM) $(addprefix $(MAIN), .dvi .ps .xcp) +clean : + $(RM) $(foreach i,$(DOC_SOURCES:.tex=),$(addprefix $i, \ + .log .plog .preamble .aux .glg .glo .gls .ilg .idx .ind .tmp .toc .out .blg .bbl)) veryclean : clean - $(RM) $(addprefix $(MAIN), .pdf .bbl .blg) + $(RM) $(foreach i,$(DOC_SOURCES:.tex=),$(addprefix $i, \ + .pdf .bbl .blg)) arch : zip $(ARCHNAME).zip $(ARCHFILES) -tds: +ifneq ($(strip $(PRO)),) +installPRO : + @echo "Installiere PRO-Dateien ($(PRO))..." + cp -u Changes $(TDS)/dvips/$(PACKAGE)/ + cp -u $(PACKAGE).pro $(TDS)/dvips/$(PACKAGE)/ + cp -u $(PACKAGE).pro ~/Links/dvips-local/ +else +installPRO : + @: +endif + +tds : installPRO + @echo "Installiere TeX-Zeug..." cp -u Changes $(TDS)/doc/generic/$(PACKAGE)/ cp -u README $(TDS)/doc/generic/$(PACKAGE)/ - cp -u $(MAIN).pdf $(TDS)/doc/generic/$(PACKAGE)/ + cp -u *.pdf $(TDS)/doc/generic/$(PACKAGE)/ # cp -u Changes $(TDS)/tex/latex/$(PACKAGE)/ cp -u $(PACKAGE).sty $(TDS)/tex/latex/$(PACKAGE)/ @@ -57,14 +72,12 @@ tds: cp -u Changes $(TDS)/tex/generic/$(PACKAGE)/ cp -u $(PACKAGE).tex $(TDS)/tex/generic/$(PACKAGE)/ # -# cp -u Changes $(TDS)/dvips/$(PACKAGE)/ -# cp -u $(PACKAGE).pro $(TDS)/dvips/$(PACKAGE)/ -# cp -u $(PACKAGE).pro ~/Links/dvips-local/ -# cp -u Changes $(TDS)/source/$(PACKAGE)/ - cp -u $(MAIN).tex $(TDS)/source/$(PACKAGE)/ + cp -u *-doc??.tex $(TDS)/source/$(PACKAGE)/ cp -u $(MAIN).bib $(TDS)/source/$(PACKAGE)/ cp -u Makefile $(TDS)/source/$(PACKAGE)/ +debug : + @echo $(DOC_SOURCES) # EOF |