This repository has been archived by the owner on Apr 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
166 lines (153 loc) · 8.18 KB
/
Makefile
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# non-portable GNU makefile for figures generation
# ======================================================================
# Laboratoire Jacques-Louis Lions
# Université Pierre et Marie Curie-Paris6, UMR 7598, Paris, F-75005 France
# ======================================================================
# This file is part of Freefem++
#
# Freefem++ is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# Freefem++ 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with Freefem++; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# ======================================================================
# headeralh brief="non-portable GNU makefile for figures generation" default=0 freefem make multipleauthors upmc
# ALH - 16/10/13 - Separated this makefile from [[file:Makefile.am]] because Automake complains that it contains
# non-portable GNU makefile directives.
EPSTOPDF = epstopdf
%.dvi:%.tex cpfigs $(CPFIGS_EPS)
-rm $*.dvi $*.aux $*.log \
$*.toc $*.ind $*.glo $*.out $*.blg $*ilg $*.idx $*.bbl $*.tmp
latex $*
latex $*
makeindex $*
latex $*
%.ps:%.dvi
dvips -u +psfonts.map -u +pdftex.map -u +Ttbbold.map -z -K $* -o $@
%.pdf:%.tex # cpfigs $(CPFIGS_PDF)
$(MAKE) cpfigs $(CPFIGS_PDF) EPSTOPDF="$(EPSTOPDF)"
-rm $*.pdf $*.aux $*.log \
$*.toc $*.ind $*.glo $*.out $*.blg $*ilg $*.idx $*.bbl $*.tmp
pdflatex $*
pdflatex $*
pdflatex $*
makeindex $*
pdflatex $*
cpfigs:
-mkdir cpfigs
%.gz:%
gzip -c -9 $* >$*.gz
clean:
-rm *.dvi *.pdf *~ *.aux *.log *.ps *.ps.gz \
*.toc *.ind *.glo *.out *.blg *ilg *.idx *.bbl *.tmp
-rm -r cpfigs
cpfigs/%.pdf:plots/%.eps
$(EPSTOPDF) $^ --outfile=$@
cpfigs/%.pdf:figures/%.eps
$(EPSTOPDF) $^ --outfile=$@
cpfigs/%.eps:plots/%.jpg
convert $^ $@
cpfigs/%.eps:plots/%.pdf
pdf2ps $^ $@
PREFIX=/usr/local/ff++
install:freefem++doc.pdf
install -d -m 755 $(DESTDIR)$(PREFIX)/share/freefem++
install -m 644 freefem++doc.pdf $(DESTDIR)$(PREFIX)/share/freefem++
## ls */*.eps|column -c 80|sed 's/$/ \\/'
FIGS_EPS= \
figures/1stCOD.eps figures/LastCOD.eps figures/cfunc1.eps \
figures/1stCOD2.eps figures/LastCOD2.eps figures/cfunc2.eps \
figures/1stPhoto.eps figures/LastPhoto.eps figures/electro.eps \
figures/1stPhoto2.eps figures/LastPhoto2.eps figures/electroMesh.eps \
figures/BellInit.eps figures/NACA0012.eps figures/mesh_sample.eps \
figures/BellLast.eps figures/P0P1P2P1nc.eps figures/naca1.eps \
figures/Bezier.eps figures/P1P2.eps figures/naca2.eps \
figures/Cardioid.eps figures/SmileFace.eps figures/projP0.eps \
figures/Cassini.eps figures/ThreePoint.eps figures/projP1.eps \
figures/Cycloid1.eps figures/TouchSide.eps figures/projP1b.eps \
figures/Cycloid2.eps figures/U-shape.eps figures/projP1nc.eps \
figures/Engine.eps figures/V-shape.eps figures/projP2.eps \
figures/FreeFem++-cs.eps figures/aTutorial.eps figures/soapfilm.eps \
figures/L-shape.eps figures/adaptmesh.eps figures/soapfilm3d.eps \
figures/L-shape2.eps figures/border.eps figures/square.eps \
figures/mach2r.eps \
figures/buillayermesh.eps figures/layer2D.eps figures/degenerate.eps \
figures/cube-bal-perio-medit.eps figures/cube-bal-perio.eps \
plots/BSth.eps plots/eigen12.eps plots/onoldmesh.eps \
plots/BSval.eps plots/emptymesh-1.eps plots/perio4.eps \
plots/FIGII1.eps plots/emptymesh-2.eps plots/period.eps \
plots/FIGII2.eps plots/emptymesh.eps plots/potential.eps \
plots/FIGII3.eps plots/err02.eps plots/potheat.eps \
plots/FIGII4.eps plots/fastInterpolat.eps plots/region.eps \
plots/FIGII5.eps plots/firstTh.eps plots/region_nu.eps \
plots/FIGII6.eps plots/firstU.eps plots/region_u.eps \
plots/FIGII7.eps plots/fluidstruct1.eps plots/rhoP2.eps \
plots/FIGII8.eps plots/fluidstruct2.eps plots/rmuonde.eps \
plots/FIGII9.eps plots/fluidstruct3.eps plots/schwarz-no-th.eps \
plots/Laplace.eps plots/gnumembrane.eps plots/schwarz-no-u.eps \
plots/NScahouetChabart.eps plots/gnuplot.eps plots/schwarz-no-u0.eps \
plots/NSprojP.eps plots/hat.eps plots/schwarz-th.eps \
plots/NSprojTh.eps plots/heatex.eps plots/schwarz-u.eps \
plots/NSprojU.eps plots/heatexTh.eps plots/schwarz-u0.eps \
plots/RT0.eps plots/imuonde.eps plots/secondT.eps \
plots/ThrhoP2.eps plots/laRTp.eps plots/sound.eps \
plots/Thwithhole.eps plots/lamedeform.eps plots/sound0.eps \
plots/Thwithouthole.eps plots/lamevect.eps plots/splitmesh.eps \
plots/Thxy.eps plots/lapRTuv.eps plots/squareb.eps \
plots/condensor.eps plots/likegnu.eps plots/stokes.eps \
plots/condensorth.eps plots/logo.eps plots/tempmuonde.eps \
plots/condersor.eps plots/lshape.eps plots/thermic.eps \
plots/convectCG.eps plots/lshapeSol.eps plots/thermicvst.eps \
plots/convectDG.eps plots/medit.eps plots/three.eps \
plots/csSnap.eps plots/membrane.eps plots/threeg.eps \
plots/dTh.eps plots/membraneTh.eps plots/trunc0.eps \
plots/d_Thf.eps plots/movemesh.eps plots/trunc6.eps \
plots/d_u.eps plots/nl-elas.eps plots/twosquare.eps \
plots/eigen.eps plots/nosplitmesh.eps plots/xyf.eps \
plots/eigen11.eps plots/onnewmesh.eps \
plots/medit2.eps plots/threehsv.eps plots/hsv.eps \
plots/crimpson.eps plots/J-bfgs.eps plots/u-bfgs.eps \
plots/csSnapOld.eps \
plots/logo.eps plots/arei-Thu.eps plots/arei-etak.eps \
plots/overlapTh.eps plots/us-ug.eps plots/vs-vg.eps \
plots/square-0.eps plots/square-1.eps plots/square-2.eps \
plots/cube.eps plots/cone.eps \
plots/Hex-Sphere.eps plots/Cube-With-Ball.eps \
plots/multiendborder.eps plots/multiendmesh.eps \
plots/leman.eps
# Pour la page de garde FH
FIGS_JPG=plots/fig-alh.jpg plots/fig-fh.jpg plots/fig-ko.jpg plots/fig-op.jpg \
figures/mi.jpg plots/LogoUPMC.jpg \
plots/beam-3d.jpg \
plots/logo-finance-par-anr.jpg \
plots/VarIneqFill.jpg plots/VarIneqIso.jpg \
plots/NSNewtonTh.jpg plots/NSNewtonUP.jpg \
plots/chesapeake-2.jpg \
plots/minsurf3D.jpg \
plots/lg.jpg plots/INRIA-logo.jpg
FIGS_PDF= plots/LogoCNRS.pdf plots/LogoLJLL.pdf plots/ffauteur.pdf \
plots/titre-ff.pdf plots/BG-russe.pdf plots/sanskrit.pdf \
plots/nlopttab.pdf
EXTRA_DIST= addfe.tex docFFGUI.tex manual-full.tex freefem++doc.tex manual.tex FF.sty FFF.sty dessin.sty pdfsync.sty styles.sty \
$(FIGS_EPS) $(FIGS_JPG) $(FIGS_PDF)
## la liste des figures a cree pour la doc (eps on pdf)
CPFIGS_PDF = $(addprefix cpfigs/,$(notdir $(patsubst %.eps,%.pdf,$(FIGS_EPS)) \
))
CPFIGS_EPS = $(addprefix cpfigs/,$(notdir $(patsubst %.pdf,%.eps,$(FIGS_PDF))) \
$(notdir $(patsubst %.jpg,%.eps,$(FIGS_JPG))) \
)
# do not delete the copy figure to long to created
.PRECIOUS: $(CPFIGS_PDF) $(CPFIGS_EPS)
# Local Variables:
# mode:makefile
# ispell-local-dictionary:"british"
# coding:utf-8
# End: