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