.PHONY : clean veryclean UTILS = $(HOME)/bin ML = $(UTILS)/pdflatex FIGDIR = fig MAIN = femto-JMN PDFFILE = $(MAIN).pdf BIBFILE = biblio.bib TEXFILE = $(MAIN).tex GNUPLOTFILE = $(wildcard $(FIGDIR)/*.gnu) FIGFILE = $(wildcard $(FIGDIR)/*.fig) PDFTEXFIG = $(FIGFILE:.fig=.pdftex) PDFTEXTFIG = $(FIGFILE:.fig=.pdftex_t) GNUPLOTFIG = $(GNUPLOTFILE:.gnu=.fig) GNUPLOTPDF = $(GNUPLOTFILE:.gnu=.pdf) # all : # @echo "make pdf | print | complet (reconstruct the figures) | clean | veryclean" all : complet print complet : $(GNUPLOTFIG) $(TEXFILE) $(GNUPLOTPDF) $(PDFTEXFIG) $(PDFTEXTFIG) $(PDFFILE) pdf : complet $(PDFFILE) print : $(TEXFILE) @pdflatex $(MAIN).tex @pdflatex $(MAIN).tex $(MAIN).pdf: $(TEXFILE) @pdflatex $(MAIN).tex $(FIGDIR)/%.fig : $(FIGDIR)/%.gnu gnuplot $< $(FIGDIR)/%.pdftex : $(FIGDIR)/%.fig fig2dev -L pdftex $< $@ $(FIGDIR)/%.pdftex_t : $(FIGDIR)/%.pdftex $(FIGDIR)/%.fig fig2dev -L pdftex_t -p $^ $@ $(FIGDIR)/%.pdf : $(FIGDIR)/%.fig fig2dev -L pdf $< $@ clean: @echo " > Nettoyage" @rm -f *.aux$ >> /dev/null @rm -f *.log$ >> /dev/null @rm -f *.toc >> /dev/null @rm -f *.lof >> /dev/null @rm -f *.lot$ >> /dev/null @rm -f *.bbl >> /dev/null @rm -f *.blg$ >> /dev/null @rm -f *.out$ >> /dev/null @rm -f *.snm$ >> /dev/null @rm -f *.nav$ >> /dev/null @rm -f *~$ >> /dev/null @rm -f *.tex.backup$ >> /dev/null rm -rf *inria*[a-eg-z] *lip*[a-eg-z] *~ veryclean : clean rm -f $(PDFFILE)