infra: Expunge revision history clutter.
[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
86f6a31e 28AUTOMAKE_OPTIONS = foreign
29
30texmfdir = @texmfdir@
31pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
32pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
33
950ff97f 34define(`addsuffix', `patsubst(`$1', `\>', `$2')')
86f6a31e 35define(`BASE', `\
83b69571 36 at centre cmtt colour crypto doafter exercise footnote mdwkey \
37 mdwlist mdwmath mdwtab mdwthm poetry slowbox sverb syntax')
86f6a31e 38
8c890f24 39AUX = mdwtools.tex gpl.tex
950ff97f 40SRC = addsuffix(BASE, `.dtx')
41DVI = addsuffix(BASE, `.dvi') mdwtools.dvi
83b69571 42PS = addsuffix(BASE, `.ps') mdwtools.ps
86f6a31e 43OBJ = \
44 at.sty \
950ff97f 45 cmtt.sty mttcmtt.fd mttenc.def \
83b69571 46 colour.sty \
86f6a31e 47 crypto.sty \
48 doafter.sty \
49 doafter.tex \
50 exercise.sty \
51 footnote.sty \
83b69571 52 mdwkey.sty \
86f6a31e 53 mdwlist.sty \
54 mdwmath.sty \
83b69571 55 mdwtab.sty mathenv.sty mtcolour.sty mtcolor.sty \
86f6a31e 56 mdwthm.sty mdwmargin.thm \
57 poetry.sty \
83b69571 58 slowbox.sty \
59 sverb.sty svcolor.sty svcolour.sty svsplit.sty \
86f6a31e 60 syntax.sty
61
8c890f24 62pkglatex_DATA = $(OBJ) mdwtools.tex
83b69571 63pkgdoc_DATA = $(DVI) $(PS)
86f6a31e 64
83b69571 65SUFFIXES = .dtx .tex .dvi .ps
86f6a31e 66define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<"
67 latex "\def\indexing{y} \nonstopmode \input $<"
68 makeindex -s gind.ist $`'*.idx
69 latex "\def\indexing{n} \nonstopmode \input $<"')
70
83b69571 71.dtx.dvi:
86f6a31e 72 run_latex
83b69571 73.tex.dvi:
86f6a31e 74 run_latex
83b69571 75.dvi.ps:
76 dvips -e0 -o $@ $<
77
78$(DVI): gpl.tex $(OBJ) mdwtools.tex
86f6a31e 79
86f6a31e 80$(OBJ): $(SRC) mdwtools.ins
81 tex mdwtools.ins
82
83b69571 83EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) $(PS) mdwtools.ins Makefile.m4
8c890f24 84
86f6a31e 85MAINTAINERCLEANFILES = $(OBJ) $(DVI)
86CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans
87
88Makefile.am: Makefile.m4
83b69571 89 m4 $(srcdir)/Makefile.m4 >Makefile.am.new
90 mv Makefile.am.new $(srcdir)/Makefile.am
86f6a31e 91
92.PHONY: dvi
93
94##----- That's all, folks ---------------------------------------------------