| 1 |
# Copyright (C) 2006, 2007 QuinScape GmbH |
| 2 |
# http://www.quinscape.de |
| 3 |
# This file comes without warranty of any kind. |
| 4 |
# It may be freely used, copied, modified and distributed. |
| 5 |
# |
| 6 |
# The following assumes the current directory to be |
| 7 |
# $TEXMF/source/tex/latex/contrib/qstest and is only used for the |
| 8 |
# `install' target. |
| 9 |
STYLEDIR=../../../../../tex/latex/qstest |
| 10 |
DOCDIR=../../../../../doc/latex/qstest |
| 11 |
|
| 12 |
all: makematch.dvi makematch.pdf makematch.sty qstest.ins qstest.dvi qstest.pdf qstest.sty test |
| 13 |
|
| 14 |
.PHONY: all test clean distclean tarball install |
| 15 |
|
| 16 |
.DELETE_ON_ERROR: |
| 17 |
|
| 18 |
test: qstest-qs.log makematch-qs.log |
| 19 |
|
| 20 |
qstest-qs.lgout qstest-qs.log: qstest-qs.tex makematch.sty qstest.sty |
| 21 |
latex qstest-qs.tex |
| 22 |
|
| 23 |
makematch-qs.log: makematch-qs.tex makematch.sty qstest.sty |
| 24 |
latex makematch-qs.tex |
| 25 |
|
| 26 |
qstest.drv qstest-qs.tex qstest.sty: qstest.dtx qstest.ins |
| 27 |
tex "\let\Make=y \input qstest.ins" |
| 28 |
|
| 29 |
makematch.drv makematch-qs.tex makematch.sty: makematch.dtx qstest.ins |
| 30 |
tex "\let\Make=y \input qstest.ins" |
| 31 |
|
| 32 |
qstest.ins: qstest.dtx |
| 33 |
tex "\def\jobname{qstest.ins}\input docstrip \askforoverwritefalse\generate{\file{qstest.ins}{\from{qstest.dtx}{installer}}}\endbatchfile" |
| 34 |
|
| 35 |
qstest.dvi: qstest.drv qstest.sty qstest.dtx qstest-qs.lgout |
| 36 |
latex qstest.drv |
| 37 |
latex qstest.drv |
| 38 |
latex qstest.drv |
| 39 |
|
| 40 |
qstest.pdf: qstest.drv qstest.sty qstest.dtx qstest-qs.lgout |
| 41 |
rm -f qstest.out |
| 42 |
pdflatex qstest.dtx |
| 43 |
pdflatex qstest.dtx |
| 44 |
pdflatex qstest.dtx |
| 45 |
|
| 46 |
makematch.dvi: makematch.drv makematch.sty makematch.dtx |
| 47 |
latex makematch.drv |
| 48 |
latex makematch.drv |
| 49 |
latex makematch.drv |
| 50 |
|
| 51 |
makematch.pdf: makematch.sty makematch.dtx |
| 52 |
rm -f makematch.out |
| 53 |
pdflatex makematch.dtx |
| 54 |
pdflatex makematch.dtx |
| 55 |
pdflatex makematch.dtx |
| 56 |
|
| 57 |
install: qstest.sty makematch.sty qstest.dvi makematch.dvi |
| 58 |
[ -d $(STYLEDIR) ] || mkdir $(STYLEDIR) |
| 59 |
[ -d $(DOCDIR) ] || mkdir $(DOCDIR) |
| 60 |
install qstest.sty makematch.sty $(STYLEDIR) |
| 61 |
install qstest.dvi makematch.dvi $(DOCDIR) |
| 62 |
|
| 63 |
clean: |
| 64 |
rm -f *.dvi *.pdf *.aux *.toc *.glo *.idx *.gls *.ind *.log *.lgout *.qsout *.out qstest-qs.* makematch-qs.* |
| 65 |
|
| 66 |
distclean: clean |
| 67 |
rm -f qstest.sty qstest.ins qstest.drv makematch.sty makematch.drv |
| 68 |
|
| 69 |
tarball: qstest.tar.gz |
| 70 |
|
| 71 |
qstest.tar.gz: test README Makefile qstest.ins qstest.dtx qstest.pdf makematch.dtx makematch.pdf |
| 72 |
rm -rf qstest |
| 73 |
mkdir qstest |
| 74 |
ln README Makefile qstest.ins qstest.dtx qstest.pdf makematch.dtx makematch.pdf qstest |
| 75 |
tar cf - qstest | gzip -9 > qstest.tar.gz |
| 76 |
rm -rf qstest |