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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
MANFILES = asy.1 xasy.1x
ASYFILES = $(filter-out $(wildcard latexusage-*.asy),$(wildcard *.asy))
SOURCE = asymptote.texi version.texi options
ASY = ../asy -dir ../base -config "" -render=0
DOCFILES = asymptote.pdf asy-latex.pdf CAD.pdf TeXShopAndAsymptote.pdf \
asyRefCard.pdf
docdir = $(DESTDIR)@docdir@
infodir = $(DESTDIR)@infodir@
datarootdir = @datarootdir@
INSTALL = @INSTALL@
TEXI2DVI = @TEXI2DVI@
export docdir infodir INSTALL
all: doc
asy-latex.pdf:
pdflatex asy-latex.dtx
asymptote.sty:
pdflatex asy-latex.dtx
dvi: doc asymptote.dvi
doc: $(DOCFILES) asy.1 faq latexusage.eps
cd png && $(MAKE) all
manpage: $(MANFILES)
man: $(DOCFILES) manpage
cd png && $(MAKE) asymptote.info
faq:
cd FAQ && $(MAKE) faq
%.eps: %.asy
$(ASY) -f eps $<
%.pdf: %.asy
$(ASY) -f pdf -noprc $<
latexusage.dvi: latexusage.tex asymptote.sty
rm -f latexusage-*
rm -f latexusage.pre
rm -f latexusage.aux
latex latexusage
$(ASY) -noprc latexusage-*.asy
latex latexusage
latexusage.eps: latexusage.dvi
dvips -o latexusage.eps latexusage
latexusage.pdf: latexusage.dvi
dvipdf latexusage
options: ../settings.cc
$(ASY) -h 2>&1 | grep -iv Asymptote > options
asy.1: options asy.1.begin asy.1.end
cat options | grep \^- | \
sed -e "s/-\(.*\) \([a-zA-Z0-9].*\)/.TP\n.B -\1\n\2\./" | \
sed -e "/^.B/ s/-/\\\\-/g" | cat asy.1.begin - asy.1.end > asy.1
asymptote.dvi: $(SOURCE) $(ASYFILES:.asy=.eps) latexusage.pdf
ln -sf asymptote.texi asymptote_.texi
$(TEXI2DVI) asymptote_.texi
mv asymptote_.dvi asymptote.dvi
asymptote.pdf: $(SOURCE) $(ASYFILES:.asy=.pdf) latexusage.pdf
$(TEXI2DVI) --pdf asymptote.texi
CAD.pdf: CAD.tex CAD1.eps
latex CAD
latex CAD
latex CAD
dvipdf CAD
TeXShopAndAsymptote.pdf: TeXShopAndAsymptote.tex
latex TeXShopAndAsymptote
latex TeXShopAndAsymptote
dvipdf TeXShopAndAsymptote
asyRefCard.pdf: asyRefCard.tex
tex asyRefCard
dvipdf asyRefCard
clean: FORCE
-rm -f asy-latex.{aux,idx,ins,log,toc}
-rm -f $(ASYFILES:.asy=.pdf)
-rm -f *.eps latexusage.{dvi,eps,pdf,log,aux,*.eps} latexusage-* \
latexusage.pre
-rm -f \
{asymptote,asymptote_}.{aux,cp,cps,dvi,fn,info,ky,log,pg,toc,tp,vr}
-rm -f asymptote_.texi
-rm -f CAD.{aux,dvi,log,toc}
-rm -f options asy.1
cd png && $(MAKE) clean
install-man:
${INSTALL} -d -m 755 $(docdir) $(mandir)/man1
${INSTALL} -p -m 644 $(DOCFILES) $(docdir)
${INSTALL} -p -m 644 $(MANFILES) $(mandir)/man1
install: man faq install-man
cd png && $(MAKE) install
cd FAQ && $(MAKE) install
install-prebuilt: install-man options
touch png/asymptote.info
cd png && $(MAKE) install
cd FAQ && $(MAKE) install-prebuilt
install-all: $(DOCFILES) $(MANFILES) faq latexusage.eps install-man
cd png && $(MAKE) install-all
cd FAQ && $(MAKE) install-info
uninstall: uninstall-all
uninstall-all:
cd png && $(MAKE) uninstall
cd FAQ && $(MAKE) uninstall
-cd $(mandir)/man1 && rm -f $(MANFILES)
-rm -f $(addprefix $(docdir)/,$(DOCFILES))
distclean: FORCE clean
-rm -f version.texi Makefile
-rm -f $(DOCFILES)
cd png && $(MAKE) distclean
cd FAQ && $(MAKE) distclean
FORCE:
Makefile: Makefile.in
cd ..; config.status
|