Clean up DataFlow lattice to be more readable and more consistent with the paper
[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 ps:V: $TGT.ps
19 bbl:V: bib
20
21 tag:VQ: $TGT.tex
22         tag=`$HOME/bin/md5words $prereq | tr -d "'" | tr -cs a-zA-Z0-9 - | sed s/-*$//`
23         echo git tag $tag
24         git tag $tag
25
26 dfopt.dvi: dfopt.bbl code.sty timestamp.tex dfoptdu.tex cprop.tex comb1.tex iterf.tex
27
28 $TGT.pdf: $TGT.dvi
29         dvips -Ppdf -o"|ps2pdf - $target" -pp 1-$LASTPAGE $prereq
30
31 supplement.pdf: $TGT.dvi
32         dvips -Ppdf -o"|ps2pdf - $target" -pp 13- $prereq
33
34 $HOME/www/drop/popl-index.pdf: $TGT.dvi
35         dvips -Ppdf -o "|ps2pdf - $target" -pp 13- $prereq
36
37 timestamp.tex: $TGT.tex
38         date=`stat -c "%y" $prereq`
39         signature=""
40         if [ -x $HOME/bin/md5words ]; then
41           words="`md5words $prereq`"
42           signature=" [MD5: \\mbox{$words}]"
43         else
44           words="(could not compute signature words)"
45         fi
46         date -d "$date" "+\def\mdfivestamp{\\rlap{\\textbf{%a %e %b %Y, %l:%M %p$signature}}}\def\mdfivewords{$words}" > $target
47
48
49
50 %du.tex:D: defuse %.tex hsprelude
51         [ -r "$target" ] && chmod +w $target
52         ./defuse < $stem.tex > $target
53         chmod -w $target
54
55
56 CLIENT=../testing
57 CPROPS=ConstProp Simplify Test
58
59 cprop.tex:D: ./xsource ${CPROPS:%=$CLIENT/%.hs}
60         lua $prereq > $target
61
62 HOOPL=../src/Compiler/Hoopl
63
64 comb1.tex iterf.tex:D: ./xsource $HOOPL/Combinators.hs
65         lua $prereq > $target