3 ## $Id: Makefile.m4,v 1.2 2002/02/03 20:57:21 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.2 2002/02/03 20:57:21 mdw
32 ## Sort out distribution.
34 ## Revision 1.1 2002/02/03 20:49:02 mdw
35 ## Checkin for new build system.
38 AUTOMAKE_OPTIONS = foreign
41 pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
42 pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
44 define(`addsuffix', `patsubst(`$1', `\>', `.$2')')
46 at cmtt crypto doafter exercise footnote \
47 mdwlist mdwmath mdwtab mdwthm poetry sverb syntax')
49 AUX = mdwtools.tex gpl.tex
50 SRC = addsuffix(BASE, `dtx')
51 DVI = addsuffix(BASE, `dvi') mdwtools.dvi
54 cmtt.sty mTTcmtt.fd mTTenc.def \
62 mdwtab.sty mathenv.sty \
63 mdwthm.sty mdwmargin.thm \
68 pkglatex_DATA = $(OBJ) mdwtools.tex
71 SUFFIXES = .dtx .tex .dvi
72 define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<"
73 latex "\def\indexing{y} \nonstopmode \input $<"
74 makeindex -s gind.ist $`'*.idx
75 latex "\def\indexing{n} \nonstopmode \input $<"')
82 $(OBJ): $(SRC) mdwtools.ins
85 EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) mdwtools.ins Makefile.m4
87 MAINTAINERCLEANFILES = $(OBJ) $(DVI)
88 CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans
90 Makefile.am: Makefile.m4
91 cd $(srcdir) && m4 Makefile.m4 >Makefile.am
95 ##----- That's all, folks ---------------------------------------------------