2004-02-25 13:01:21 +00:00
|
|
|
LATEX = latex
|
|
|
|
PDFLATEX = pdflatex
|
|
|
|
PSLATEX = pslatex
|
|
|
|
DVIPDF = dvipdf
|
|
|
|
DVIPS = dvips
|
|
|
|
PS2PDF = ps2pdf
|
|
|
|
GDATE := $(shell date +"-%Y-%m-%d_r%H")
|
|
|
|
GFILENAME := CDC$(GDATE).tar.bz2
|
|
|
|
LOCALDIR = $(shell pwd)
|
|
|
|
MAINFILE = rapport
|
|
|
|
|
|
|
|
|
2004-02-25 20:17:00 +00:00
|
|
|
#PNGFILES := $(shell ls *.png)
|
|
|
|
#EPSFILES := $(patsubst %.png,%.eps,$(PNGFILES))
|
|
|
|
#PNG2EPSCC = convert
|
2004-02-25 13:01:21 +00:00
|
|
|
TEXFILES := $(MAINFILE).tex
|
|
|
|
DVIFILES := $(MAINFILE).dvi
|
|
|
|
PDFFILES := $(MAINFILE).pdf
|
|
|
|
PSFILES := $(MAINFILE).ps
|
|
|
|
|
2004-02-25 20:17:00 +00:00
|
|
|
all: dvi dvi ps pdf pdf
|
2004-02-25 13:01:21 +00:00
|
|
|
|
2004-02-25 20:17:00 +00:00
|
|
|
#png2eps: $(EPSFILES)
|
2004-02-25 13:01:21 +00:00
|
|
|
|
2004-02-25 20:17:00 +00:00
|
|
|
#%.eps : %.png
|
|
|
|
# @$(PNG2EPSCC) $< $@
|
|
|
|
# @echo -e "png2eps\t$< $@"
|
2004-02-25 13:01:21 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f rapport.dvi rapport.rtf rapport.pdf rapport.ps
|
|
|
|
@rm -f *.out *.log *.toc *.aux
|
2004-02-25 20:17:00 +00:00
|
|
|
# @rm -f *.eps
|
2004-02-25 13:01:21 +00:00
|
|
|
@rm -f *~
|
|
|
|
|
|
|
|
pdf: $(TEXFILES)
|
|
|
|
$(PDFLATEX) $(TEXFILES)
|
|
|
|
|
|
|
|
ps: $(TEXFILES)
|
|
|
|
$(DVIPS) $(DVIFILES)
|
|
|
|
|
|
|
|
dvi: $(PRJFILES)
|
|
|
|
$(LATEX) $(TEXFILES)
|
|
|
|
|
|
|
|
#mail: package sendmail
|
|
|
|
#
|
|
|
|
#pdfmail :
|
|
|
|
# make && make
|
|
|
|
# echo "Et voila le dernier pdf" | mutt lsr-dev -a $(PDFFILES) -s "[CDC] Rev$(GDATE) (en PDF)"
|
|
|
|
#
|
|
|
|
#sendmail:
|
|
|
|
# echo "Et voila" | mutt lsr-dev -a ../Archives/$(GFILENAME) -s "[CDC] Rev$(GDATE) (en TeX)"
|
|
|
|
#
|
|
|
|
|
|
|
|
package: clean storefile
|
|
|
|
|
|
|
|
#storefile:
|
|
|
|
# tar -cjvf ../$(GFILENAME) -C ../ cdc
|
|
|
|
# mv ../$(GFILENAME) ../Archives
|