3 ## $Id: Makefile.m4,v 1.4 2003/09/05 16:16:31 mdw Exp $
5 ## Build system for mdwtools
7 ## (c) 2002 Mark Wooding
10 ##----- Licensing notice ----------------------------------------------------
12 ## This file is part of the mdwtools LaTeX package collection.
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.
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.
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.
28 ##----- Revision history ----------------------------------------------------
30 ## $Log: Makefile.m4,v $
31 ## Revision 1.4 2003/09/05 16:16:31 mdw
34 ## Revision 1.3 2002/02/19 22:49:57 mdw
35 ## Use lowercase names for font definition files.
37 ## Revision 1.2 2002/02/03 20:57:21 mdw
38 ## Sort out distribution.
40 ## Revision 1.1 2002/02/03 20:49:02 mdw
41 ## Checkin for new build system.
44 AUTOMAKE_OPTIONS = foreign
47 pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
48 pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
50 define(`addsuffix', `patsubst(`$1', `\>', `$2')')
52 at centre cmtt colour crypto doafter exercise footnote mdwkey \
53 mdwlist mdwmath mdwtab mdwthm poetry slowbox sverb syntax')
55 AUX = mdwtools.tex gpl.tex
56 SRC = addsuffix(BASE, `.dtx')
57 DVI = addsuffix(BASE, `.dvi') mdwtools.dvi
58 PS = addsuffix(BASE, `.ps') mdwtools.ps
61 cmtt.sty mttcmtt.fd mttenc.def \
71 mdwtab.sty mathenv.sty mtcolour.sty mtcolor.sty \
72 mdwthm.sty mdwmargin.thm \
75 sverb.sty svcolor.sty svcolour.sty svsplit.sty \
78 pkglatex_DATA = $(OBJ) mdwtools.tex
79 pkgdoc_DATA = $(DVI) $(PS)
81 SUFFIXES = .dtx .tex .dvi .ps
82 define(`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 $<"')
94 $(DVI): gpl.tex $(OBJ) mdwtools.tex
96 $(OBJ): $(SRC) mdwtools.ins
99 EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) $(PS) mdwtools.ins Makefile.m4
101 MAINTAINERCLEANFILES = $(OBJ) $(DVI)
102 CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans
104 Makefile.am: Makefile.m4
105 m4 $(srcdir)/Makefile.m4 >Makefile.am.new
106 mv Makefile.am.new $(srcdir)/Makefile.am
110 ##----- That's all, folks ---------------------------------------------------