Infra: Ignore boring files, and expunge old setup script.
[mdwslides] / Makefile.m4
CommitLineData
fb50dc45 1## -*-makefile-*-
2##
3## $Id: Makefile.m4,v 1.1 2002/02/24 12:47:11 mdw Exp $
4##
5## Build system for mdwslides
6##
7## (c) 2002 Mark Wooding
8##
9
10##----- Licensing notice ----------------------------------------------------
11##
12## This file is part of the mdwslides document class.
13##
14## mdwslides 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## mdwslides 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 mdwslides; 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.1 2002/02/24 12:47:11 mdw
32## Initial revision.
33##
34
35AUTOMAKE_OPTIONS = foreign
36
37texmfdir = @texmfdir@
38pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
39pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
40
41define(`addsuffix', `patsubst(`$1', `\>', `$2')')
42define(`BASE', `mdwslides')
43
44AUX = gpl.tex mdwslides.cls
45SRC = addsuffix(BASE, `.dtx')
46DVI = addsuffix(BASE, `.dvi')
47OBJ = mdwslides.cls
48
49pkglatex_DATA = $(OBJ)
50pkgdoc_DATA = $(DVI)
51
52SUFFIXES = .dtx .tex .dvi
53define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<"
54 latex "\def\indexing{y} \nonstopmode \input $<"
55 makeindex -s gind.ist $`'*.idx
56 latex "\def\indexing{n} \nonstopmode \input $<"')
57
58.dtx.dvi: $(AUX)
59 run_latex
60
61$(OBJ): $(SRC) mdwslides.ins
62 tex mdwslides.ins
63
64EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) mdwslides.ins Makefile.m4
65
66MAINTAINERCLEANFILES = $(OBJ) $(DVI)
67CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans
68
69Makefile.am: Makefile.m4
70 cd $(srcdir) && m4 Makefile.m4 >Makefile.am
71
72.PHONY: dvi
73
74##----- That's all, folks ---------------------------------------------------