stop building the supplement for the submission to POPL 2010
[packages/hoopl.git] / paper / mkfile
1 <./latex.mk
2 <./spell.mk
3 <./bbl.$USER.mk
4 <./bitly.$USER.mk
5
6
7 LASTPAGE=12  # use this for submission
8 LASTPAGE=
9
10 TGT=dfopt
11
12 all:V: $TGT.pdf supplement.pdf $TGT.ps 
13 old:V: popl-index.bitly
14 bib:V: $TGT.bbl
15 bibfile:V: $TGT.bib
16 dvi:V: $TGT.dvi
17 pdf:V: $TGT.pdf
18 bbl:V: bib
19
20 tag:VQ: $TGT.tex
21         tag=`$HOME/bin/md5words $prereq | tr -d "'" | tr -cs a-zA-Z0-9 - | sed s/-*$//`
22         echo git tag $tag
23         git tag $tag
24
25 dfopt.dvi: dfopt.bbl code.sty timestamp.tex dfoptdu.tex cprop.tex comb1.tex iterf.tex
26
27 $TGT.pdf: $TGT.dvi
28         dvips -Ppdf -o"|ps2pdf - $target" -pp 1-$LASTPAGE $prereq
29
30 supplement.pdf: $TGT.dvi
31         dvips -Ppdf -o"|ps2pdf - $target" -pp 13- $prereq
32
33 $HOME/www/drop/popl-index.pdf: $TGT.dvi
34         dvips -Ppdf -o "|ps2pdf - $target" -pp 13- $prereq
35
36 timestamp.tex: $TGT.tex
37         date=`stat -c "%y" $prereq`
38         signature=""
39         if [ -x $HOME/bin/md5words ]; then
40           words="`md5words $prereq`"
41           signature=" [MD5: \\mbox{$words}]"
42         else
43           words="(could not compute signature words)"
44         fi
45         date -d "$date" "+\def\mdfivestamp{\\rlap{\\textbf{%a %e %b %Y, %l:%M %p$signature}}}\def\mdfivewords{$words}" > $target
46
47
48
49 %du.tex:D: defuse %.tex hsprelude
50         [ -r "$target" ] && chmod +w $target
51         ./defuse < $stem.tex > $target
52         chmod -w $target
53
54
55 CLIENT=../testing
56 CPROPS=ConstProp Simplify Test
57
58 cprop.tex:D: ./xsource ${CPROPS:%=$CLIENT/%.hs}
59         lua $prereq > $target
60
61 HOOPL=../src/Compiler/Hoopl
62
63 comb1.tex iterf.tex:D: ./xsource $HOOPL/Combinators.hs
64         lua $prereq > $target