1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Rolf Niepraschk, niepraschk@ptb.de, 2003-02-23
.SUFFIXES : .tex .dvi .ps .pdf .eps
MAIN = pst-user
# D.G. modification begin - Feb. 28, 2003
#LATEX = elatex
LATEX = latex
# D.G. modification end
PDFLATEX = pdfelatex
PS2PDF = ps2pdf
# D.G. modification begin - Feb. 28, 2003
PS2PDF_OPT1 = -sPAPERSIZE=letter
#PS2PDF_OPT1 = -sPAPERSIZE=a4
# D.G. modification end
PS2PDF_OPT2 = -sPAPERSIZE=letter
DVIPSFLAGS1 = -Ppdf -G0
DVIPSFLAGS2 = -Pwww -E
#GSOPT = GS_OPTIONS=-dAutoRotatePages=/None
GSOPT = GS_OPTIONS=-dPDFSETTINGS=/prepress
PICS := $(PICS:.eps=.pdf)
# D.G. modification begin - Mar. 7, 2003
#ADDINPUTS = pst-user.cls defaults.pst
ADDINPUTS = pst-user.cls defaults.pst \
psd-cove.tex psd-esse.tex psd-basi.tex psd-para.tex psd-cust.tex \
psd-pict.tex psd-text.tex psd-node.tex psd-tree.tex psd-fill.tex \
psd-3d.tex psd-spec.tex psd-help.tex
# D.G. modification end
ARCHNAME = $(MAIN)-$(shell date +%y%m%d).zip
# D.G. modification begin - Mar. 7, 2003
TARNAME = $(MAIN)-$(shell date +%y%m%d).tar
# D.G. modification end
# D.G. modification begin - Feb. 28, 2003
#all : $(MAIN).pdf $(MAIN)-old.pdf
all : $(MAIN).pdf
# D.G. modification end
$(MAIN).dvi : $(MAIN).tex $(ADDINPUTS)
$(LATEX) $<
# D.G. modification begin - Feb. 28, 2003
# makeindex -t $(basename $<).ilg $(basename $<)
# D.G. modification end
makeindex -t $(basename $<).ilg -s pst-user.ist $(basename $<)
$(LATEX) $<
$(MAIN).pdf : $(MAIN).ps
$(PS2PDF) $(PS2PDF_OPT1) $< $@
%.ps : %.dvi
dvips $(DVIPSFLAGS1) $< -o $@
pst-user-old.pdf : pst-user-old.tex pst-usr1.pdf pst-usr2.pdf pst-usr3.pdf \
pst-usr4.pdf
$(PDFLATEX) $<
pst-usr%.pdf : pst-usr%.ps.gz
zcat $< | $(PS2PDF) $(PS2PDF_OPT2) - > $@
clean :
$(RM) $(addprefix $(MAIN), .aux .ilg .ind .idx .log .out .tmp .toc)
# D.G. modification begin - Mar. 7, 2003
# $(RM) $(addprefix $(MAIN)-old, .log .aux)
# $(RM) pst-usr?.pdf
# D.G. modification end
veryclean : clean
$(RM) $(addprefix $(MAIN), .ps .dvi .pdf)
# D.G. modification begin - Mar. 7, 2003
# $(RM) $(MAIN)-old.pdf
$(RM) *.aux
# D.G. modification end
arch :
zip $(ARCHNAME) $(MAIN).tex $(ADDINPUTS) pst-user-old.tex Makefile
@ echo ; echo $(ARCHNAME) ; echo
# D.G. modification begin - Mar. 7, 2003
tar:
tar -cf $(TARNAME) $(MAIN).tex $(ADDINPUTS) \
pst-user.ist pst-user.idx \
CHANGES VERSIONS TODO \
Makefile artistic.txt defaults.pst \
pstricks.tex pst-eps.tex pst-node.tex pst-tree.tex \
*.sty pst-user.pdf
gzip --force $(TARNAME)
ls -l $(TARNAME).gz
# D.G. modification end
|