add Makefile
[fleet.git] / Makefile
1
2 inkscape = DISPLAY= /Applications/Inkscape.app/Contents//Resources/bin/inkscape  -z
3
4 default: am33.pdf
5         open am33.pdf
6
7 am33.pdf: am33.tex
8         pdflatex am33.tex
9
10 am33.pdf: am33.tex best.pdf ports.pdf overview.pdf indock.pdf outdock.pdf inner-loop.pdf outer-loop.pdf all.pdf in.pdf out.pdf
11         pdflatex am33.tex
12
13 #in.eps: all.svg
14 #       $(inkscape) -j --export-id=input $^ --export-eps=$@
15 #
16 #out.eps: all.svg
17 #       $(inkscape) -j --export-id=output $^ --export-eps=$@
18
19 %.eps: %.svg
20         $(inkscape) -D $^ --export-eps=$@
21
22 %.pdf: %.eps
23         epstopdf $^ --outfile=$@
24
25 publish: am33.pdf
26         aklog research.cs.berkeley.edu
27         cp am33.pdf /afs/research.cs.berkeley.edu/class/fleet/website/docs/people/adam.megacz/am33/`date +%d-%b-%Y | tr A-Z a-z`.pdf
28         cd /afs/research.cs.berkeley.edu/class/fleet/website/docs/people/adam.megacz/am33/; ln -sf `date +%d-%b-%Y | tr A-Z a-z`.pdf am33-latest.pdf
29         echo
30         emacs -nw ~/wix/src/research.cs.berkeley.edu/fleet/docs/index.wix
31         cd ~/proj/wix; make