Changeset 10 for trunk/Makefile
- Timestamp:
- Jul 12, 2011, 7:29:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r9 r10 69 69 SRC_BIB := $(notdir $(foreach dir,$(ARBO_BIB),$(wildcard $(dir)/*.bib))) 70 70 71 #OBJ_PSTEX := $(patsubst %.fig,$(DIR_TMP)/%.pstex, $(SRC_FIG)) 72 #OBJ_PDFTEX := $(patsubst %.fig,$(DIR_TMP)/%.pdftex, $(SRC_FIG)) 73 OBJ_EPS := $(patsubst %.fig,$(DIR_TMP)/%.eps, $(SRC_FIG)) 74 OBJ_PSTEX_T := $(patsubst %.fig,$(DIR_TMP)/%.pstex_t, $(SRC_FIG)) 75 OBJ_PDF := $(patsubst %.fig,$(DIR_TMP)/%.pdf, $(SRC_FIG)) 76 OBJ_PDFTEX_T := $(patsubst %.fig,$(DIR_TMP)/%.pdftex_t, $(SRC_FIG)) 77 78 OBJ_PDF4EPS := $(patsubst %.eps,$(DIR_TMP)/%.pdf, $(SRC_EPS)) 79 71 OBJ_FIG2EPS := $(patsubst %.fig,$(DIR_TMP)/%.eps, $(SRC_FIG)) 72 OBJ_FIG2PSTEX_T := $(patsubst %.fig,$(DIR_TMP)/%.pstex_t, $(SRC_FIG)) 73 OBJ_FIG2PDF := $(patsubst %.fig,$(DIR_TMP)/%.pdf, $(SRC_FIG)) 74 OBJ_FIG2PDFTEX_T := $(patsubst %.fig,$(DIR_TMP)/%.pdftex_t, $(SRC_FIG)) 75 OBJ_EPS2PDF := $(patsubst %.eps,$(DIR_TMP)/%.pdf, $(SRC_EPS)) 76 OBJ_JPG2EPS := $(patsubst %.jpg,$(DIR_TMP)/%.eps, $(SRC_JPG)) 77 OBJ_PNG2EPS := $(patsubst %.png,$(DIR_TMP)/%.eps, $(SRC_PNG)) 78 OBJ_GIF2EPS := $(patsubst %.gif,$(DIR_TMP)/%.eps, $(SRC_GIF)) 80 79 81 80 OBJ_BASE := $(DIR_TMP)/$(DOCUMENT) … … 85 84 86 85 PDFTEXPRE := export TEXMFOUTPUT="$(DIR_TMP)"; 87 #PDFTEXPRE += export TEXINPUTS="$(DIR_PROJET)/src//:$(DIR_PROJET)/src/Figures:$(DIR_TMP):";88 86 PDFTEXPRE += export TEXINPUTS="$(TEXINPUTS)"; 89 87 PDFTEXPRE += export LANG="C"; … … 108 106 vpath %.png $(ARBO_FIG) 109 107 vpath %.gif $(ARBO_FIG) 110 111 vpath %.bib $(ARBO_BIB) 108 vpath %.bib $(ARBO_BIB) 112 109 113 110 .PHONY: all folder … … 155 152 @echo '############################################################' 156 153 154 #--------------------------------------------------------------# 155 157 156 vims: 158 157 vim --servername DOC $(DOCUMENT).tex … … 207 206 @echo '### Liste des variables ' 208 207 @echo '############################################################' 209 @echo SRC_FIG $(SRC_FIG)210 @echo SRC_TEX $(SRC_TEX)211 @echo OBJ_PSTEX $(OBJ_PSTEX)212 @echo OBJ_ PSTEX_T $(OBJ_PSTEX_T)213 @echo OBJ_ PDF4EPS $(OBJ_PDF4EPS)214 @echo OBJ_ PDF $(OBJ_PDF)208 @echo SRC_FIG $(SRC_FIG) 209 @echo SRC_TEX $(SRC_TEX) 210 @echo OBJ_PSTEX $(OBJ_PSTEX) 211 @echo OBJ_FIG2PSTEX_T $(OBJ_FIG2PSTEX_T) 212 @echo OBJ_EPS2PDF $(OBJ_EPS2PDF) 213 @echo OBJ_FIG2PDF $(OBJ_FIG2PDF) 215 214 216 215 clean: … … 235 234 $(DOCUMENT).pdf \ 236 235 $(OBJ_PSTEX) \ 237 $(OBJ_ PSTEX_T) \238 $(OBJ_ PDF) \236 $(OBJ_FIG2PSTEX_T) \ 237 $(OBJ_FIG2PDF) \ 239 238 $(DIR_PDF)/$(DOCUMENT).pdf \ 240 239 $(DIR_TMP)/* … … 250 249 #--------------------------------------------------------------# 251 250 252 figure: $(OBJ_ PDF) $(OBJ_PDFTEX_T) $(OBJ_EPS) $(OBJ_PSTEX_T) $(OBJ_PDF4EPS)251 figure: $(OBJ_FIG2PDF) $(OBJ_FIG2PDFTEX_T) $(OBJ_FIG2EPS) $(OBJ_FIG2PSTEX_T) 253 252 @echo '############################################################' 254 253 @echo '#### Fin des figures' … … 271 270 #--------------------------------------------------------------# 272 271 273 pdflatex: folder figure 272 pdflatex: folder figure $(OBJ_EPS2PDF) 274 273 @echo '############################################################' 275 274 @echo '#### Debut du formateur pdflatex' … … 282 281 @echo '############################################################' 283 282 284 latex: f igure283 latex: folder figure $(OBJ_JPG2EPS) $(OBJ_PNG2EPS) $(OBJ_GIF2EPS) 285 284 @echo '############################################################' 286 285 @echo '#### Debut du formateur latex' … … 329 328 dvi: $(DIR_TMP)/dvi.ok 330 329 331 $(DIR_TMP)/pdf.ok: $(DOCUMENT).tex $(SRC_TEX) $(OBJ_ PDF) $(OBJ_PDFTEX_T)330 $(DIR_TMP)/pdf.ok: $(DOCUMENT).tex $(SRC_TEX) $(OBJ_FIG2PDF) $(OBJ_FIG2PDFTEX_T) 332 331 make pdflatex 333 332 touch $< 334 333 335 $(DIR_TMP)/dvi.ok: $(DOCUMENT).tex $(SRC_TEX) $(OBJ_ EPS) $(OBJ_PSTEX_T)334 $(DIR_TMP)/dvi.ok: $(DOCUMENT).tex $(SRC_TEX) $(OBJ_FIG2EPS) $(OBJ_FIG2PSTEX_T) 336 335 make latex 337 336 touch $< … … 339 338 ################################################################ 340 339 341 $(DIR_TMP)/$(DOCUMENT).pdf: $(DOCUMENT).tex $(SRC_BIB) $(SRC_TEX) $(OBJ_ PDF) $(OBJ_PSTEX_T)340 $(DIR_TMP)/$(DOCUMENT).pdf: $(DOCUMENT).tex $(SRC_BIB) $(SRC_TEX) $(OBJ_FIG2PDF) $(OBJ_FIG2PSTEX_T) 342 341 $(COPYTOC) 343 342 make pdflatex … … 354 353 ################################################################ 355 354 356 $(DIR_TMP)/$(DOCUMENT).dvi: $(DOCUMENT).tex $(SRC_BIB) $(SRC_TEX) $(OBJ_ EPS) $(OBJ_PSTEX_T)355 $(DIR_TMP)/$(DOCUMENT).dvi: $(DOCUMENT).tex $(SRC_BIB) $(SRC_TEX) $(OBJ_FIG2EPS) $(OBJ_FIG2PSTEX_T) 357 356 $(COPYTOC) 358 357 make latex … … 407 406 # fig2dev -L pstex_t -p $^ $@ 408 407 409 $(DIR_TMP)/%.pdf: %.eps410 @echo eps2pdf $< $@411 epstopdf $< --outfile $@412 413 408 ifeq "$(QUIX)" "A.linux" 414 409 $(DIR_TMP)/%.pdftex: %.fig … … 435 430 # fig2dev -L pdftex_t -E 1 -p $* $< $@ 436 431 432 433 $(DIR_TMP)/%.pdf: %.eps 434 epstopdf $< --outfile $@ 435 436 $(DIR_TMP)/%.eps: %.jpg 437 convert $< $@ 438 439 $(DIR_TMP)/%.eps: %.png 440 convert $< $@ 441 442 $(DIR_TMP)/%.eps: %.gif 443 convert $< $@ 444 437 445 ################################################################ 438 446 # dossier
Note: See TracChangeset
for help on using the changeset viewer.