Changeset 6 for trunk


Ignore:
Timestamp:
Jul 12, 2011, 3:58:28 PM (9 years ago)
Author:
g7moreau
Message:
  • Auto adjust TEXINPUTS
  • Add BSTINPUTS for bibtex
  • Change dossier by folder keyword
  • Create folder when use make pdflatex
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r5 r6  
    7777OBJ_BASE    := $(DIR_TMP)/$(DOCUMENT)
    7878
    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)/))))
     79TEXINPUTS   := $(subst //,/,$(subst / /,:/,$(foreach dir,$(ARBO_TEX),$(strip $(DIR_PROJET)/src/$(dir)/)))):$(DIR_TMP):
     80BIBINPUTS   := $(subst //,/,$(subst / /,:/,$(foreach dir,$(ARBO_BIB),$(strip $(DIR_PROJET)/src/$(dir)/))))
     81
     82PDFTEXPRE   := export TEXMFOUTPUT="$(DIR_TMP)";
     83#PDFTEXPRE   += export TEXINPUTS="$(DIR_PROJET)/src//:$(DIR_PROJET)/src/Figures:$(DIR_TMP):";
     84PDFTEXPRE   += export TEXINPUTS="$(TEXINPUTS)";
     85PDFTEXPRE   += export LANG="C";
     86
    8487BIBTEXPRE   := cd $(DIR_TMP);
    8588BIBTEXPRE   += BIBINPUTS="$(BIBINPUTS)"
     89BIBTEXPRE   += BSTINPUTS="$(BIBINPUTS)"
    8690
    8791RERUNTEX := "(There were undefined references|Rerun to get (cross-references|the bars) right)"
     
    103107vpath %.bib                     $(ARBO_BIB)
    104108
    105 .PHONY: all dossier
     109.PHONY: all folder
    106110.PHONY: doc docps docpdf
    107111.PHONY: html
     
    117121#--------------------------------------------------------------#
    118122
    119 all: dossier doc
    120 
    121 dossier: $(DIR_HTML) $(DIR_PS) $(DIR_PDF) $(DIR_TMP)
     123all: folder doc
     124
     125folder: $(DIR_HTML) $(DIR_PS) $(DIR_PDF) $(DIR_TMP)
    122126        @echo '############################################################'
    123127        @echo '### Fin de la gestion des dossiers'
     
    256260#--------------------------------------------------------------#
    257261
    258 pdflatex: figure
     262pdflatex: folder figure
    259263        @echo '############################################################'
    260264        @echo '####  Debut du formateur pdflatex'
     
    292296        @echo '############################################################'
    293297        @echo '# all       -> compilation complete'
    294         @echo '# dossier   -> création des dossiers du projet'
     298        @echo '# folder    -> création des dossiers du projet'
    295299        @echo '# clean     -> nettoyage partiel'
    296300        @echo '# pdf       -> compilation simple avec dependance -> pdf'
Note: See TracChangeset for help on using the changeset viewer.