| 1 |
# Copyright 2012 TeX Users Group. |
| 2 |
# This file is part of the cmdtrack package, released under the LPPL; |
| 3 |
# see cmdtrack.dtx for details. |
| 4 |
|
| 5 |
pkg = cmdtrack |
| 6 |
# |
| 7 |
opt = --interaction=nonstopmode --file-line-error |
| 8 |
latex = latex $(opt) |
| 9 |
pdflatex = pdflatex $(opt) |
| 10 |
|
| 11 |
$(pkg).pdf: $(pkg).sty $(pkg).dtx |
| 12 |
$(pdflatex) $(pkg).dtx |
| 13 |
$(pdflatex) $(pkg).dtx |
| 14 |
|
| 15 |
$(pkg).sty: $(pkg).ins $(pkg).dtx |
| 16 |
$(latex) $< |
| 17 |
|
| 18 |
dist: $(pkg).zip |
| 19 |
$(pkg).zip: Makefile README $(pkg).dtx $(pkg).pdf $(pkg).ins |
| 20 |
chmod a+rw $^ |
| 21 |
rm -f $@; zip $@ $^ |