| 1 |
## |
| 2 |
## Makefile |
| 3 |
## |
| 4 |
## This file is in public domain. |
| 5 |
## River Valley Technologies |
| 6 |
## http://www.river-valley.com |
| 7 |
## |
| 8 |
## |
| 9 |
|
| 10 |
file=grid |
| 11 |
|
| 12 |
|
| 13 |
all: pdf out |
| 14 |
make pdf |
| 15 |
|
| 16 |
out: |
| 17 |
if [ -f $(file).out ] ; then cp $(file).out tmp.out; fi ; |
| 18 |
sed 's/BOOKMARK/dtxmark/g;' tmp.out > x.out; mv x.out tmp.out ; |
| 19 |
|
| 20 |
pdf: |
| 21 |
pdflatex $(file).tex |
| 22 |
|
| 23 |
index: |
| 24 |
makeindex -s gind.ist -o $(file).ind $(file).idx |
| 25 |
|
| 26 |
changes: |
| 27 |
makeindex -s gglo.ist -o $(file).gls $(file).glo |
| 28 |
|
| 29 |
xview: |
| 30 |
# xpdf -z 200 $(file).pdf &>/dev/null |
| 31 |
open -a 'Skim.app' $(file).pdf |
| 32 |
|
| 33 |
view: |
| 34 |
open -a 'Adobe Reader.app' $(file).pdf |
| 35 |
|
| 36 |
ins: |
| 37 |
latex $(file).ins |
| 38 |
|
| 39 |
diff: |
| 40 |
diff $(file).sty ../$(file).sty |less |
| 41 |
|
| 42 |
copy: |
| 43 |
cp $(file).sty ../ |
| 44 |
|