| 1 |
## |
| 2 |
## Makefile |
| 3 |
## |
| 4 |
## |
| 5 |
## |
| 6 |
## |
| 7 |
## |
| 8 |
|
| 9 |
file=pdfx |
| 10 |
|
| 11 |
|
| 12 |
all: pdf out index changes |
| 13 |
make pdf |
| 14 |
|
| 15 |
out: |
| 16 |
if [ -f $(file).links ] ; then cp $(file).links tmp.links; fi ; |
| 17 |
# sed 's/BOOKMARK/fxmark/g;' tmp.out > x.out; mv x.out tmp.out ; |
| 18 |
|
| 19 |
pdf: |
| 20 |
pdflatex -recorder $(file).dtx |
| 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 |
xview: |
| 29 |
mupdf -r 100 $(file).pdf &>/dev/null |
| 30 |
|
| 31 |
view: |
| 32 |
acroread $(file).pdf |
| 33 |
|
| 34 |
ins: |
| 35 |
latex pdfx.ins |
| 36 |
|
| 37 |
diff: |
| 38 |
diff $(file).sty ../$(file).sty |less |
| 39 |
|
| 40 |
copy: |
| 41 |
cp $(file).sty ../ |
| 42 |
|