| 1 |
#****************************************************************************** |
| 2 |
#* $Id: Makefile 4 2011-01-07 20:02:22Z neugebauer $ |
| 3 |
#****************************************************************************** |
| 4 |
#* Author: Gerd Neugebauer |
| 5 |
#*============================================================================= |
| 6 |
|
| 7 |
DISTFILES = productbox.ins \ |
| 8 |
productbox.dtx \ |
| 9 |
productbox.bib \ |
| 10 |
README.md \ |
| 11 |
LICENSE \ |
| 12 |
Makefile \ |
| 13 |
productbox.pdf |
| 14 |
|
| 15 |
all: productbox.pdf |
| 16 |
|
| 17 |
%.pdf: %.dtx productbox.sty %.bbl %.ind %.gls |
| 18 |
pdflatex -interaction=batchmode -draftmode $*.dtx |
| 19 |
pdflatex -interaction=batchmode $*.dtx |
| 20 |
${RM} $*.out |
| 21 |
|
| 22 |
%.sty: %.dtx *.ins |
| 23 |
rm -f $*.sty |
| 24 |
tex $*.ins |
| 25 |
|
| 26 |
%.bbl: %.aux *.bib |
| 27 |
bibtex $* |
| 28 |
|
| 29 |
%.ind: %.idx |
| 30 |
makeindex -s gind $*.idx |
| 31 |
|
| 32 |
%.idx: %.dtx |
| 33 |
pdflatex -draftmode $*.dtx |
| 34 |
|
| 35 |
%.aux: %.dtx |
| 36 |
pdflatex -draftmode $*.dtx |
| 37 |
|
| 38 |
%.gls: %.glo |
| 39 |
makeindex -s gglo -o $*.gls $*.glo |
| 40 |
|
| 41 |
%.glo: %.dtx |
| 42 |
pdflatex -draftmode $*.dtx |
| 43 |
|
| 44 |
#------------------------------------------------------------------------------ |
| 45 |
|
| 46 |
productbox.tgz dist: productbox.pdf |
| 47 |
tar -cvzf productbox.tgz ${DISTFILES} |
| 48 |
|
| 49 |
clean: |
| 50 |
${RM} productbox.aux productbox.ilg productbox.idx productbox.log productbox.toc productbox.glo productbox.out *~ |
| 51 |
|
| 52 |
distclean: clean |
| 53 |
${RM} productbox.sty productbox.pdf |
| 54 |
|
| 55 |
# |