*makefile du rapor

This commit is contained in:
rivka_zan 2004-02-25 13:01:21 +00:00
parent 3c671a971b
commit 44bf95bff7

58
doc/rapport/Makefile Normal file
View file

@ -0,0 +1,58 @@
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
PNGFILES := $(shell ls *.png)
EPSFILES := $(patsubst %.png,%.eps,$(PNGFILES))
PNG2EPSCC = convert
TEXFILES := $(MAINFILE).tex
DVIFILES := $(MAINFILE).dvi
PDFFILES := $(MAINFILE).pdf
PSFILES := $(MAINFILE).ps
all: png2eps dvi dvi ps pdf pdf
png2eps: $(EPSFILES)
%.eps : %.png
@$(PNG2EPSCC) $< $@
@echo -e "png2eps\t$< $@"
clean:
@rm -f rapport.dvi rapport.rtf rapport.pdf rapport.ps
@rm -f *.out *.log *.toc *.aux
@rm -f *.eps
@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