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