- Timestamp:
- Jul 12, 2011, 9:15:33 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r4 r5 21 21 ARBO_TEX := ./ 22 22 ARBO_FIG := $(ARBO_TEX) 23 ARBO_BIB := $(ARBO_TEX) 23 24 24 25 ################################################################ … … 36 37 BIBTEX := bibtex 37 38 L2H := latex2html 38 PDFTEXPRE := export TEXMFOUTPUT="$(DIR_TMP)";39 PDFTEXPRE += export TEXINPUTS="$(DIR_PROJET)/src:toto:$(DIR_TMP):";40 PDFTEXPRE += export LANG="C";41 39 PDFTEX := pdflatex 42 40 DVIPS := dvips … … 45 43 BIN_UNPROTECT := chmod u+w . 46 44 45 DVI_VIEWER := xdvi 46 PDF_VIEWER := xpdf 47 PS_VIEWER := gv 48 49 47 50 # User Config 48 51 ################################################################ … … 54 57 55 58 SRC_FIG := $(notdir $(foreach dir,$(ARBO_FIG),$(wildcard $(dir)/*.fig))) 59 SRC_EPS := $(notdir $(foreach dir,$(ARBO_FIG),$(wildcard $(dir)/*.eps))) 60 SRC_PDF := $(notdir $(foreach dir,$(ARBO_FIG),$(wildcard $(dir)/*.pdf))) 61 SRC_JPG := $(notdir $(foreach dir,$(ARBO_FIG),$(wildcard $(dir)/*.jpg))) 62 SRC_PNG := $(notdir $(foreach dir,$(ARBO_FIG),$(wildcard $(dir)/*.png))) 63 SRC_GIF := $(notdir $(foreach dir,$(ARBO_FIG),$(wildcard $(dir)/*.gif))) 56 64 SRC_TEX := $(notdir $(foreach dir,$(ARBO_TEX),$(wildcard $(dir)/*.tex))) 57 SRC_BIB := biblio.bib65 SRC_BIB := $(notdir $(foreach dir,$(ARBO_BIB),$(wildcard $(dir)/*.bib))) 58 66 59 67 #OBJ_PSTEX := $(patsubst %.fig,$(DIR_TMP)/%.pstex, $(SRC_FIG)) … … 64 72 OBJ_PDFTEX_T := $(patsubst %.fig,$(DIR_TMP)/%.pdftex_t, $(SRC_FIG)) 65 73 74 OBJ_PDF4EPS := $(patsubst %.eps,$(DIR_TMP)/%.pdf, $(SRC_EPS)) 75 76 66 77 OBJ_BASE := $(DIR_TMP)/$(DOCUMENT) 67 78 79 PDFTEXPRE := export TEXMFOUTPUT="$(DIR_TMP)"; 80 PDFTEXPRE += export TEXINPUTS="$(DIR_PROJET)/src//:$(DIR_TMP):"; 81 PDFTEXPRE += export LANG="C"; 82 83 BIBINPUTS := $(subst //,/,$(subst / /,:/,$(foreach dir,$(ARBO_BIB),$(strip $(DIR_PROJET)/src/$(dir)/)))) 84 BIBTEXPRE := cd $(DIR_TMP); 85 BIBTEXPRE += BIBINPUTS="$(BIBINPUTS)" 68 86 69 87 RERUNTEX := "(There were undefined references|Rerun to get (cross-references|the bars) right)" … … 77 95 vpath %.pdftex $(DIR_TMP) 78 96 vpath %.pdftex_t $(DIR_TMP) 79 vpath %.pdf . $(DIR_TMP) 80 vpath %.eps . $(DIR_TMP) 97 vpath %.pdf $(ARBO_FIG) $(DIR_TMP) 98 vpath %.eps $(ARBO_FIG) $(DIR_TMP) 99 vpath %.jpg $(ARBO_FIG) 100 vpath %.png $(ARBO_FIG) 101 vpath %.gif $(ARBO_FIG) 102 103 vpath %.bib $(ARBO_BIB) 81 104 82 105 .PHONY: all dossier … … 104 127 105 128 xpdf: $(DIR_TMP)/$(DOCUMENT).pdf 106 xpdf$(DIR_TMP)/$(DOCUMENT).pdf &129 $(PDF_VIEWER) $(DIR_TMP)/$(DOCUMENT).pdf & 107 130 @echo '############################################################' 108 131 @echo '#### Visualisation de $(DOCUMENT)' … … 111 134 xdvi: $(DIR_TMP)/$(DOCUMENT).dvi 112 135 export XEDITOR="nedit-nc -line %l %f"; \ 113 xdvi-bg grey95 $(DIR_TMP)/$(DOCUMENT) &136 $(DVI_VIEWER) -bg grey95 $(DIR_TMP)/$(DOCUMENT) & 114 137 @echo '############################################################' 115 138 @echo '#### Visualisation de $(DOCUMENT)' … … 118 141 119 142 gv:$(DIR_PS)/$(DOCUMENT).ps 120 gv$(DIR_PS)/$(DOCUMENT).ps &143 $(PS_VIEWER) $(DIR_PS)/$(DOCUMENT).ps & 121 144 @echo '############################################################' 122 145 @echo '#### Visualisation de $(DOCUMENT)' … … 141 164 142 165 html: $(DIR_HTML) 143 latex2html-split 3 -local_icons -no_math -white \166 $(L2H) -split 3 -local_icons -no_math -white \ 144 167 -tmp /tmp -dir $(DIR_HTML) -prefix $(DOCUMENT) -antialias $(DOCUMENT).tex 145 168 … … 173 196 @echo OBJ_PSTEX $(OBJ_PSTEX) 174 197 @echo OBJ_PSTEX_T $(OBJ_PSTEX_T) 198 @echo OBJ_PDF4EPS $(OBJ_PDF4EPS) 175 199 @echo OBJ_PDF $(OBJ_PDF) 176 200 … … 211 235 #--------------------------------------------------------------# 212 236 213 figure: $(OBJ_PDF) $(OBJ_PDFTEX_T) $(OBJ_EPS) $(OBJ_PSTEX_T) 237 figure: $(OBJ_PDF) $(OBJ_PDFTEX_T) $(OBJ_EPS) $(OBJ_PSTEX_T) $(OBJ_PDF4EPS) 214 238 @echo '############################################################' 215 239 @echo '#### Fin des figures' … … 258 282 @echo '#### Debut de la bibliographie' 259 283 @echo '############################################################' 260 $(BIBTEX ) $(OBJ_BASE)284 $(BIBTEXPRE) $(BIBTEX) $(OBJ_BASE) 261 285 @echo '############################################################' 262 286 @echo '#### Fin de la bibliographie' … … 368 392 # fig2dev -L pstex_t -p $^ $@ 369 393 394 $(DIR_TMP)/%.pdf: %.eps 395 @echo eps2pdf $< $@ 396 epstopdf $< --outfile $@ 397 370 398 ifeq "$(QUIX)" "A.linux" 371 399 $(DIR_TMP)/%.pdftex: %.fig
Note: See TracChangeset
for help on using the changeset viewer.