-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 903 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DIRNAME=`dirname $(PWD)`
BASEDIR=`basename $(PWD)`
DATE=`date '+%a%d%b%y-%H%M'`
FILE=$(BASEDIR)-$(DATE).tar.bz2
all: image dvi pdf
image:
(cd figures-src && make && make install)
dvi:
(cd figures-src && make ps && make installps)
latex -src presentation.tex
latex -src presentation.tex
latex -src presentation.tex
ps: dvi
dvips presentation.dvi
pdf:
(cd figures-src && make pdf && make installpdf)
pdflatex presentation.tex
pdflatex presentation.tex
pdflatex presentation.tex
(cd tp && make pdf)
clean: cleantex
(cd figures-src && make clean)
(cd figures && make clean)
cleantex:
rm -f *.aux *.log *.toc *.pdf *.bbl *.blg *.dvi *.ps *~ *.bak *.bmt \
*.out *.lof *.lot *.mlf? *.mlt? *.mtc *.mtc? \
presentation.idx presentation.ilg presentation.ind \
presentation.nav presentation.snm presentation.vrb
dist: clean
cd $(DIRNAME) ; tar -jcv --exclude CVS -f $(FILE) $(BASEDIR)