| 1 |
XQ_0_3_STY = /usr/share/texmf-dist/tex/latex/xq/xq.sty |
| 2 |
|
| 3 |
all: xqexample.pdf bugs-0-3.pdf |
| 4 |
|
| 5 |
tmp: |
| 6 |
mkdir $@ |
| 7 |
|
| 8 |
xqexample.pdf: xqexample.tex xq.sty | tmp |
| 9 |
pdflatex -output-directory tmp $< |
| 10 |
mv -f tmp/$@ $@ |
| 11 |
|
| 12 |
xq-0-3.sty: |
| 13 |
test -L "${XQ_0_3_STY}" -o -f "${XQ_0_3_STY}" |
| 14 |
ln -s "${XQ_0_3_STY}" $@ |
| 15 |
|
| 16 |
bugs-0-3.pdf: bugs-0-3.tex | tmp xq-0-3.sty |
| 17 |
for i in 1 2 ; do pdflatex -output-directory tmp $< || exit 1 ; done |
| 18 |
pdflatex -output-directory tmp $< |
| 19 |
mv -f tmp/$@ $@ |
| 20 |
|
| 21 |
clean: |
| 22 |
rm -Rf tmp |
| 23 |
rm -f xqexample.pdf bugs-0-3.pdf xq.zip xq-0-3.sty |
| 24 |
|
| 25 |
dist: all |
| 26 |
test $$(basename $${PWD}) == xq |
| 27 |
rm -f xq.zip |
| 28 |
cd .. && zip -9 xq/xq.zip xq/{xq.sty,xq*.mf,{xqexample,bugs-0-3}.{tex,pdf},ChangeLog,README,Makefile} |
| 29 |
|
| 30 |
.PHONY: all dist clean |