Missing \leavevmode in \frameonly makes life very confusing if you're
[mdwtools] / Makefile.m4
CommitLineData
86f6a31e 1## -*-makefile-*-
2##
83b69571 3## $Id: Makefile.m4,v 1.4 2003/09/05 16:16:31 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 $
83b69571 31## Revision 1.4 2003/09/05 16:16:31 mdw
32## New stuff\!
33##
950ff97f 34## Revision 1.3 2002/02/19 22:49:57 mdw
35## Use lowercase names for font definition files.
36##
8c890f24 37## Revision 1.2 2002/02/03 20:57:21 mdw
38## Sort out distribution.
39##
86f6a31e 40## Revision 1.1 2002/02/03 20:49:02 mdw
41## Checkin for new build system.
42##
43
44AUTOMAKE_OPTIONS = foreign
45
46texmfdir = @texmfdir@
47pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
48pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
49
950ff97f 50define(`addsuffix', `patsubst(`$1', `\>', `$2')')
86f6a31e 51define(`BASE', `\
83b69571 52 at centre cmtt colour crypto doafter exercise footnote mdwkey \
53 mdwlist mdwmath mdwtab mdwthm poetry slowbox sverb syntax')
86f6a31e 54
8c890f24 55AUX = mdwtools.tex gpl.tex
950ff97f 56SRC = addsuffix(BASE, `.dtx')
57DVI = addsuffix(BASE, `.dvi') mdwtools.dvi
83b69571 58PS = addsuffix(BASE, `.ps') mdwtools.ps
86f6a31e 59OBJ = \
60 at.sty \
950ff97f 61 cmtt.sty mttcmtt.fd mttenc.def \
83b69571 62 colour.sty \
86f6a31e 63 crypto.sty \
64 doafter.sty \
65 doafter.tex \
66 exercise.sty \
67 footnote.sty \
83b69571 68 mdwkey.sty \
86f6a31e 69 mdwlist.sty \
70 mdwmath.sty \
83b69571 71 mdwtab.sty mathenv.sty mtcolour.sty mtcolor.sty \
86f6a31e 72 mdwthm.sty mdwmargin.thm \
73 poetry.sty \
83b69571 74 slowbox.sty \
75 sverb.sty svcolor.sty svcolour.sty svsplit.sty \
86f6a31e 76 syntax.sty
77
8c890f24 78pkglatex_DATA = $(OBJ) mdwtools.tex
83b69571 79pkgdoc_DATA = $(DVI) $(PS)
86f6a31e 80
83b69571 81SUFFIXES = .dtx .tex .dvi .ps
86f6a31e 82define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<"
83 latex "\def\indexing{y} \nonstopmode \input $<"
84 makeindex -s gind.ist $`'*.idx
85 latex "\def\indexing{n} \nonstopmode \input $<"')
86
83b69571 87.dtx.dvi:
86f6a31e 88 run_latex
83b69571 89.tex.dvi:
86f6a31e 90 run_latex
83b69571 91.dvi.ps:
92 dvips -e0 -o $@ $<
93
94$(DVI): gpl.tex $(OBJ) mdwtools.tex
86f6a31e 95
86f6a31e 96$(OBJ): $(SRC) mdwtools.ins
97 tex mdwtools.ins
98
83b69571 99EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) $(PS) mdwtools.ins Makefile.m4
8c890f24 100
86f6a31e 101MAINTAINERCLEANFILES = $(OBJ) $(DVI)
102CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans
103
104Makefile.am: Makefile.m4
83b69571 105 m4 $(srcdir)/Makefile.m4 >Makefile.am.new
106 mv Makefile.am.new $(srcdir)/Makefile.am
86f6a31e 107
108.PHONY: dvi
109
110##----- That's all, folks ---------------------------------------------------