This repository was archived by the owner on Jun 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·201 lines (160 loc) · 4.65 KB
/
Makefile
File metadata and controls
executable file
·201 lines (160 loc) · 4.65 KB
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
TEXROOTFILE=these
BIBFILE=bach.bib
BIBFILE1=bach.bib
BIBFILE2=ref.bib
TEXBASEFILES=$(shell ls *tex)
TARFILE=these.tar
TEXCOVER=cover
#TEXPUBLICATIONS=publications
DIR=manuscrit #directory where the files are located
DINTRO=11
FINTRO=14
DPART1=15
D1=17
F1=36
D2=37
F2=48
D3=49
F3=54
#FPART1=50
DPART2=55
D4=57
F4=66
D5=67
F5=72
D6=73
F6=92
D7=93
F7=110
D8=111
F8=120
#FPART2=118
DCCL=121
FCCL=124
DANNEXES=125
FANNEXEA=132
DANNEXEB=133
FANNEXEB=140
DANNEXEC=141
FANNEXES=144
DGLOSSAIRE=145
FGLOSSAIRE=146
DINDEX=1
FINDEX=90
DBIBLIO=147
FBIBLIO=154
ABSTRACT=155
default: thesis
#.PHONY: $(TEXROOTFILE)-pdf
#$(TEXROOTFILE)-pdf: $(TEXBASEFILES) $(BIBFILE)
#$(TEXROOTFILE)-pdf: $(TEXBASEFILES) $(BIBFILE1) $(BIBFILE2)
# latexmk -pdf $(TEXROOTFILE).tex
# rubber -df $(TEXROOTFILE).tex
# echo $^
# pdflatex $(TEXROOTFILE)
# bibtex $(TEXROOTFILE)
# makeindex $(TEXROOTFILE)
# makeindex -s tlglo.ist -o $(TEXROOTFILE).gls $(TEXROOTFILE).glo
# pdflatex $(TEXROOTFILE)
# pdflatex $(TEXROOTFILE)
# evince $(TEXROOTFILE).pdf
#publis: $(PUBLICATIONS).pdf
#
#$(PUBLICATIONS).pdf:
# cd ./publications && latexmk -pdf $(TEXPUBLICATIONS).tex
# cd ..
cover: $(COVER).pdf
$(COVER).pdf:
cd ./cover && latexmk -pdf $(TEXCOVER).tex
cd ..
thesis: $(TEXROOTFILE).pdf
$(TEXROOTFILE).pdf: $(TEXBASEFILES) $(BIBFILE1) $(BIBFILE2) $(COVER).pdf
latexmk -pdf $(TEXROOTFILE).tex
echo $^
#$(TEXROOTFILE)-dvi: $(TEXBASEFILES) $(BIBFILE)
$(TEXROOTFILE).dvi: $(TEXBASEFILES) $(BIBFILE1) $(BIBFILE2)
latex $(TEXROOTFILE)
bibtex $(TEXROOTFILE)
#makeindex $(TEXROOTFILE)
#makeindex -s tlglo.ist -o $(TEXROOTFILE).gls $(TEXROOTFILE).glo
latex $(TEXROOTFILE)
latex $(TEXROOTFILE)
ps:
-dvips $(TEXROOTFILE).dvi
pdf:
ps2pdf $(TEXROOTFILE).ps
latest: thesis
pdftk these.pdf output `date +%Y-%m-%d_%H%M%S`-these-JCBach.pdf
#cp these.pdf `date +%Y-%m-%d_%H%M%S`-these-JCBach.pdf
valid: thesis
pdftk these.pdf output these-valide.pdf
clean.cover:
cd ./cover && rm -Rf *.log *.aux *~ *.toc *.bbl *.blg *.ps *.ind *.tgz \
*.nav *.out *.snm *.vrb auto *.fdb_latexmk *.fls *.mtc* *.flg *.glo *.idx \
*.lof *.maf *.dvi \ *.gls *.ilg *\#*
#clean.publications:
# cd ./publications && rm -Rf *.log *.aux *~ *.toc *.bbl *.blg *.ps *.ind *.tgz \
# *.nav *.out *.snm *.vrb auto *.fdb_latexmk *.fls *.mtc* *.flg *.glo *.idx \
# *.lof *.maf *.dvi \ *.gls *.ilg *\#*
#
clean.thesis:
-rm -Rf *.log *.aux *~ *.toc *.bbl *.blg *.ps *.ind *.tgz *.nav *.out *.snm \
*.vrb auto *.fdb_latexmk *.fls *.mtc* *.flg *.glo *.idx *.lof *.maf *.dvi \
*.gls *.ilg *\#*
-rm -Rf *-$(TEXROOTFILE)-JCBach.pdf
#clean.publications
clean:clean.cover clean.thesis
# -rm -Rf *.log *.aux *~ *.toc *.bbl *.blg *.ps *.ind *.tgz *.nav *.out *.snm \
# *.vrb auto *.fdb_latexmk *.fls *.mtc* *.flg *.glo *.idx *.lof *.maf *.dvi \
# *.gls *.ilg **/*.aux **/*.log **/*.flg **/*.fdb_latexmk **/*.fls *\#*
clean.all: clean clean.export
-rm -Rf $(TEXROOTFILE).pdf
-rm -Rf cover/$(TEXCOVER).pdf
# -rm -Rf publications/$(TEXPUBLICATIONS).pdf
clean.export:
-rm -Rf *-export.pdf
tar:
make clean
(cd ..; tar cvzf $(TARFILE) $(DIR); mv $(TARFILE) $(DIR))
intro: thesis
pdfjam these.pdf ${DINTRO}-${FINTRO} --outfile intro-export.pdf
ch1: thesis
pdfjam these.pdf ${D1}-${F1} --outfile ch1-export.pdf
ch2: thesis
pdfjam these.pdf ${D2}-${F2} --outfile ch2-export.pdf
ch3: thesis
pdfjam these.pdf ${D3}-${F3} --outfile ch3-export.pdf
ch4: thesis
pdfjam these.pdf ${D4}-${F4} --outfile ch4-export.pdf
ch5: thesis
pdfjam these.pdf ${D5}-${F5} --outfile ch5-export.pdf
ch6: thesis
pdfjam these.pdf ${D6}-${F6} --outfile ch6-export.pdf
ch7: thesis
pdfjam these.pdf ${D7}-${F7} --outfile ch7-export.pdf
ch8: thesis
pdfjam these.pdf ${D8}-${F8} --outfile ch8-export.pdf
ccl: thesis
pdfjam these.pdf ${DCCL}-${FCCL} --outfile ccl-export.pdf
sota: thesis
pdfjam these.pdf ${DPART1}-${F3} --outfile part1-sota-export.pdf
contrib: thesis
pdfjam these.pdf ${DPART2}-${F8} --outfile part2-contrib-export.pdf
glossaire: thesis
pdfjam these.pdf ${DGLOSSAIRE}-${DGLOSSAIRE} --outfile glossaire-export.pdf
biblio: thesis
pdfjam these.pdf ${DBIBLIO}-${FBIBLIO} --outfile biblio-export.pdf
annexea: thesis
pdfjam these.pdf ${DANNEXES}-${FANNEXEA} --outfile annexea-export.pdf
annexeb: thesis
pdfjam these.pdf ${DANNEXEB}-${FANNEXES} --outfile annexeb-export.pdf
annexes: thesis
pdfjam these.pdf ${DANNEXES}-${FANNEXES} --outfile annexes-export.pdf
abstract: thesis
pdfjam these.pdf ${ABSTRACT}-${ABSTRACT} --outfile abstract-export.pdf
thx: thesis
pdfjam these.pdf 3-3 --outfile remerciements-export.pdf
#intro #ch5 #ccl
exportall: intro ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ccl sota contrib annexes glossaire biblio abstract thx
#test: thesis
# pdfjam these.pdf 11-16 --outfile chtest.pdf