summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/qstest/Makefile
blob: 7c7fb14853e08645849248cc2559924bd3120b5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Copyright (C) 2006, 2007 QuinScape GmbH
# http://www.quinscape.de
# This file comes without warranty of any kind.
# It may be freely used, copied, modified and distributed.
#
# The following assumes the current directory to be
# $TEXMF/source/tex/latex/contrib/qstest and is only used for the
# `install' target.
STYLEDIR=../../../../../tex/latex/qstest
DOCDIR=../../../../../doc/latex/qstest

all: makematch.dvi makematch.pdf makematch.sty qstest.ins qstest.dvi qstest.pdf qstest.sty test

.PHONY: all test clean distclean tarball install

.DELETE_ON_ERROR:

test: qstest-qs.log makematch-qs.log

qstest-qs.lgout qstest-qs.log: qstest-qs.tex makematch.sty qstest.sty
	latex qstest-qs.tex

makematch-qs.log: makematch-qs.tex makematch.sty qstest.sty
	latex makematch-qs.tex

qstest.drv qstest-qs.tex qstest.sty: qstest.dtx qstest.ins
	tex "\let\Make=y \input qstest.ins"

makematch.drv makematch-qs.tex makematch.sty: makematch.dtx qstest.ins
	tex "\let\Make=y \input qstest.ins"

qstest.ins: qstest.dtx
	tex "\def\jobname{qstest.ins}\input docstrip \askforoverwritefalse\generate{\file{qstest.ins}{\from{qstest.dtx}{installer}}}\endbatchfile"

qstest.dvi: qstest.drv qstest.sty qstest.dtx qstest-qs.lgout
	latex qstest.drv
	latex qstest.drv
	latex qstest.drv

qstest.pdf: qstest.drv qstest.sty qstest.dtx qstest-qs.lgout
	rm -f qstest.out
	pdflatex qstest.dtx
	pdflatex qstest.dtx
	pdflatex qstest.dtx

makematch.dvi: makematch.drv makematch.sty makematch.dtx
	latex makematch.drv
	latex makematch.drv
	latex makematch.drv

makematch.pdf: makematch.sty makematch.dtx
	rm -f makematch.out
	pdflatex makematch.dtx
	pdflatex makematch.dtx
	pdflatex makematch.dtx

install: qstest.sty makematch.sty qstest.dvi makematch.dvi
	[ -d $(STYLEDIR) ] || mkdir $(STYLEDIR)
	[ -d $(DOCDIR) ] || mkdir $(DOCDIR)
	install qstest.sty makematch.sty $(STYLEDIR)
	install qstest.dvi makematch.dvi $(DOCDIR)

clean:
	rm -f *.dvi *.pdf *.aux *.toc *.glo *.idx *.gls *.ind *.log *.lgout *.qsout *.out qstest-qs.* makematch-qs.*

distclean: clean
	rm -f qstest.sty qstest.ins qstest.drv makematch.sty makematch.drv

tarball: qstest.tar.gz

qstest.tar.gz: test README Makefile qstest.ins qstest.dtx qstest.pdf makematch.dtx makematch.pdf
	rm -rf qstest
	mkdir qstest
	ln README Makefile qstest.ins qstest.dtx qstest.pdf makematch.dtx makematch.pdf qstest
	tar cf - qstest | gzip -9 > qstest.tar.gz
	rm -rf qstest