Makefile 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. TEXROOTFILE=these
  2. BIBFILE=bach.bib
  3. BIBFILE1=bach.bib
  4. BIBFILE2=ref.bib
  5. TEXBASEFILES=$(shell ls *tex)
  6. TARFILE=these.tar
  7. TEXCOVER=cover
  8. #TEXPUBLICATIONS=publications
  9. DIR=manuscrit #directory where the files are located
  10. DINTRO=11
  11. FINTRO=14
  12. DPART1=15
  13. D1=17
  14. F1=36
  15. D2=37
  16. F2=48
  17. D3=49
  18. F3=54
  19. #FPART1=50
  20. DPART2=55
  21. D4=57
  22. F4=66
  23. D5=67
  24. F5=72
  25. D6=73
  26. F6=92
  27. D7=93
  28. F7=110
  29. D8=111
  30. F8=120
  31. #FPART2=118
  32. DCCL=121
  33. FCCL=124
  34. DANNEXES=125
  35. FANNEXEA=132
  36. DANNEXEB=133
  37. FANNEXEB=140
  38. DANNEXEC=141
  39. FANNEXES=144
  40. DGLOSSAIRE=145
  41. FGLOSSAIRE=146
  42. DINDEX=1
  43. FINDEX=90
  44. DBIBLIO=147
  45. FBIBLIO=154
  46. ABSTRACT=155
  47. default: thesis
  48. #.PHONY: $(TEXROOTFILE)-pdf
  49. #$(TEXROOTFILE)-pdf: $(TEXBASEFILES) $(BIBFILE)
  50. #$(TEXROOTFILE)-pdf: $(TEXBASEFILES) $(BIBFILE1) $(BIBFILE2)
  51. # latexmk -pdf $(TEXROOTFILE).tex
  52. # rubber -df $(TEXROOTFILE).tex
  53. # echo $^
  54. # pdflatex $(TEXROOTFILE)
  55. # bibtex $(TEXROOTFILE)
  56. # makeindex $(TEXROOTFILE)
  57. # makeindex -s tlglo.ist -o $(TEXROOTFILE).gls $(TEXROOTFILE).glo
  58. # pdflatex $(TEXROOTFILE)
  59. # pdflatex $(TEXROOTFILE)
  60. # evince $(TEXROOTFILE).pdf
  61. #publis: $(PUBLICATIONS).pdf
  62. #
  63. #$(PUBLICATIONS).pdf:
  64. # cd ./publications && latexmk -pdf $(TEXPUBLICATIONS).tex
  65. # cd ..
  66. cover: $(COVER).pdf
  67. $(COVER).pdf:
  68. cd ./cover && latexmk -pdf $(TEXCOVER).tex
  69. cd ..
  70. thesis: $(TEXROOTFILE).pdf
  71. $(TEXROOTFILE).pdf: $(TEXBASEFILES) $(BIBFILE1) $(BIBFILE2) $(COVER).pdf
  72. latexmk -pdf $(TEXROOTFILE).tex
  73. echo $^
  74. #$(TEXROOTFILE)-dvi: $(TEXBASEFILES) $(BIBFILE)
  75. $(TEXROOTFILE).dvi: $(TEXBASEFILES) $(BIBFILE1) $(BIBFILE2)
  76. latex $(TEXROOTFILE)
  77. bibtex $(TEXROOTFILE)
  78. #makeindex $(TEXROOTFILE)
  79. #makeindex -s tlglo.ist -o $(TEXROOTFILE).gls $(TEXROOTFILE).glo
  80. latex $(TEXROOTFILE)
  81. latex $(TEXROOTFILE)
  82. ps:
  83. -dvips $(TEXROOTFILE).dvi
  84. pdf:
  85. ps2pdf $(TEXROOTFILE).ps
  86. latest: thesis
  87. pdftk these.pdf output `date +%Y-%m-%d_%H%M%S`-these-JCBach.pdf
  88. #cp these.pdf `date +%Y-%m-%d_%H%M%S`-these-JCBach.pdf
  89. valid: thesis
  90. pdftk these.pdf output these-valide.pdf
  91. clean.cover:
  92. cd ./cover && rm -Rf *.log *.aux *~ *.toc *.bbl *.blg *.ps *.ind *.tgz \
  93. *.nav *.out *.snm *.vrb auto *.fdb_latexmk *.fls *.mtc* *.flg *.glo *.idx \
  94. *.lof *.maf *.dvi \ *.gls *.ilg *\#*
  95. #clean.publications:
  96. # cd ./publications && rm -Rf *.log *.aux *~ *.toc *.bbl *.blg *.ps *.ind *.tgz \
  97. # *.nav *.out *.snm *.vrb auto *.fdb_latexmk *.fls *.mtc* *.flg *.glo *.idx \
  98. # *.lof *.maf *.dvi \ *.gls *.ilg *\#*
  99. #
  100. clean.thesis:
  101. -rm -Rf *.log *.aux *~ *.toc *.bbl *.blg *.ps *.ind *.tgz *.nav *.out *.snm \
  102. *.vrb auto *.fdb_latexmk *.fls *.mtc* *.flg *.glo *.idx *.lof *.maf *.dvi \
  103. *.gls *.ilg *\#*
  104. -rm -Rf *-$(TEXROOTFILE)-JCBach.pdf
  105. #clean.publications
  106. clean:clean.cover clean.thesis
  107. # -rm -Rf *.log *.aux *~ *.toc *.bbl *.blg *.ps *.ind *.tgz *.nav *.out *.snm \
  108. # *.vrb auto *.fdb_latexmk *.fls *.mtc* *.flg *.glo *.idx *.lof *.maf *.dvi \
  109. # *.gls *.ilg **/*.aux **/*.log **/*.flg **/*.fdb_latexmk **/*.fls *\#*
  110. clean.all: clean clean.export
  111. -rm -Rf $(TEXROOTFILE).pdf
  112. -rm -Rf cover/$(TEXCOVER).pdf
  113. # -rm -Rf publications/$(TEXPUBLICATIONS).pdf
  114. clean.export:
  115. -rm -Rf *-export.pdf
  116. tar:
  117. make clean
  118. (cd ..; tar cvzf $(TARFILE) $(DIR); mv $(TARFILE) $(DIR))
  119. intro: thesis
  120. pdfjam these.pdf ${DINTRO}-${FINTRO} --outfile intro-export.pdf
  121. ch1: thesis
  122. pdfjam these.pdf ${D1}-${F1} --outfile ch1-export.pdf
  123. ch2: thesis
  124. pdfjam these.pdf ${D2}-${F2} --outfile ch2-export.pdf
  125. ch3: thesis
  126. pdfjam these.pdf ${D3}-${F3} --outfile ch3-export.pdf
  127. ch4: thesis
  128. pdfjam these.pdf ${D4}-${F4} --outfile ch4-export.pdf
  129. ch5: thesis
  130. pdfjam these.pdf ${D5}-${F5} --outfile ch5-export.pdf
  131. ch6: thesis
  132. pdfjam these.pdf ${D6}-${F6} --outfile ch6-export.pdf
  133. ch7: thesis
  134. pdfjam these.pdf ${D7}-${F7} --outfile ch7-export.pdf
  135. ch8: thesis
  136. pdfjam these.pdf ${D8}-${F8} --outfile ch8-export.pdf
  137. ccl: thesis
  138. pdfjam these.pdf ${DCCL}-${FCCL} --outfile ccl-export.pdf
  139. sota: thesis
  140. pdfjam these.pdf ${DPART1}-${F3} --outfile part1-sota-export.pdf
  141. contrib: thesis
  142. pdfjam these.pdf ${DPART2}-${F8} --outfile part2-contrib-export.pdf
  143. glossaire: thesis
  144. pdfjam these.pdf ${DGLOSSAIRE}-${DGLOSSAIRE} --outfile glossaire-export.pdf
  145. biblio: thesis
  146. pdfjam these.pdf ${DBIBLIO}-${FBIBLIO} --outfile biblio-export.pdf
  147. annexea: thesis
  148. pdfjam these.pdf ${DANNEXES}-${FANNEXEA} --outfile annexea-export.pdf
  149. annexeb: thesis
  150. pdfjam these.pdf ${DANNEXEB}-${FANNEXES} --outfile annexeb-export.pdf
  151. annexes: thesis
  152. pdfjam these.pdf ${DANNEXES}-${FANNEXES} --outfile annexes-export.pdf
  153. abstract: thesis
  154. pdfjam these.pdf ${ABSTRACT}-${ABSTRACT} --outfile abstract-export.pdf
  155. thx: thesis
  156. pdfjam these.pdf 3-3 --outfile remerciements-export.pdf
  157. #intro #ch5 #ccl
  158. exportall: intro ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ccl sota contrib annexes glossaire biblio abstract thx
  159. #test: thesis
  160. # pdfjam these.pdf 11-16 --outfile chtest.pdf