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