Various nips and tucks. Redefine theorem styles from scratch now.
[mdwtools] / Makefile.m4
CommitLineData
86f6a31e 1## -*-makefile-*-
2##
950ff97f 3## $Id: Makefile.m4,v 1.3 2002/02/19 22:49:57 mdw Exp $
86f6a31e 4##
5## Build system for mdwtools
6##
7## (c) 2002 Mark Wooding
8##
9
10##----- Licensing notice ----------------------------------------------------
11##
12## This file is part of the mdwtools LaTeX package collection.
13##
14## mdwtools is free software; you can redistribute it and/or modify
15## it under the terms of the GNU General Public License as published by
16## the Free Software Foundation; either version 2 of the License, or
17## (at your option) any later version.
18##
19## mdwtools is distributed in the hope that it will be useful,
20## but WITHOUT ANY WARRANTY; without even the implied warranty of
21## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22## GNU General Public License for more details.
23##
24## You should have received a copy of the GNU General Public License
25## along with mdwtools; if not, write to the Free Software Foundation,
26## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
28##----- Revision history ----------------------------------------------------
29##
30## $Log: Makefile.m4,v $
950ff97f 31## Revision 1.3 2002/02/19 22:49:57 mdw
32## Use lowercase names for font definition files.
33##
8c890f24 34## Revision 1.2 2002/02/03 20:57:21 mdw
35## Sort out distribution.
36##
86f6a31e 37## Revision 1.1 2002/02/03 20:49:02 mdw
38## Checkin for new build system.
39##
40
41AUTOMAKE_OPTIONS = foreign
42
43texmfdir = @texmfdir@
44pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
45pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
46
950ff97f 47define(`addsuffix', `patsubst(`$1', `\>', `$2')')
86f6a31e 48define(`BASE', `\
49 at cmtt crypto doafter exercise footnote \
50 mdwlist mdwmath mdwtab mdwthm poetry sverb syntax')
51
8c890f24 52AUX = mdwtools.tex gpl.tex
950ff97f 53SRC = addsuffix(BASE, `.dtx')
54DVI = addsuffix(BASE, `.dvi') mdwtools.dvi
86f6a31e 55OBJ = \
56 at.sty \
950ff97f 57 cmtt.sty mttcmtt.fd mttenc.def \
86f6a31e 58 crypto.sty \
59 doafter.sty \
60 doafter.tex \
61 exercise.sty \
62 footnote.sty \
63 mdwlist.sty \
64 mdwmath.sty \
65 mdwtab.sty mathenv.sty \
66 mdwthm.sty mdwmargin.thm \
67 poetry.sty \
68 sverb.sty \
69 syntax.sty
70
8c890f24 71pkglatex_DATA = $(OBJ) mdwtools.tex
86f6a31e 72pkgdoc_DATA = $(DVI)
73
74SUFFIXES = .dtx .tex .dvi
75define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<"
76 latex "\def\indexing{y} \nonstopmode \input $<"
77 makeindex -s gind.ist $`'*.idx
78 latex "\def\indexing{n} \nonstopmode \input $<"')
79
8c890f24 80.dtx.dvi: $(AUX)
86f6a31e 81 run_latex
82.tex.dvi: gpl.tex
83 run_latex
84
86f6a31e 85$(OBJ): $(SRC) mdwtools.ins
86 tex mdwtools.ins
87
8c890f24 88EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) mdwtools.ins Makefile.m4
89
86f6a31e 90MAINTAINERCLEANFILES = $(OBJ) $(DVI)
91CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans
92
93Makefile.am: Makefile.m4
94 cd $(srcdir) && m4 Makefile.m4 >Makefile.am
95
96.PHONY: dvi
97
98##----- That's all, folks ---------------------------------------------------