build: Remove CVS cruft. Use autoconf-mode.
[strayman] / Makefile.m4
CommitLineData
1ffa9044 1## -*-makefile-*-
2##
1ffa9044 3## Build system for strayman
4##
5## (c) 2002 Mark Wooding
6##
7
8##----- Licensing notice ----------------------------------------------------
9##
10## This file is part of the Straylight Manual LaTeX document class.
11##
12## strayman is free software; you can redistribute it and/or modify
13## it under the terms of the GNU General Public License as published by
14## the Free Software Foundation; either version 2 of the License, or
15## (at your option) any later version.
16##
17## strayman is distributed in the hope that it will be useful,
18## but WITHOUT ANY WARRANTY; without even the implied warranty of
19## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20## GNU General Public License for more details.
21##
22## You should have received a copy of the GNU General Public License
23## along with strayman; if not, write to the Free Software Foundation,
24## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
1ffa9044 26AUTOMAKE_OPTIONS = foreign
27
46df6f4a
MW
28pkglatexdir = ${texmfpath}/tex/latex/${PACKAGE}
29pkgdocdir = ${texmfpath}/doc/latex/${PACKAGE}
1ffa9044 30
31define(`addsuffix', `patsubst(`$1', `\>', `$2')')
32define(`BASE', `strayman')
33
34AUX = gpl.tex strayman.cls
35SRC = addsuffix(BASE, `.dtx')
36DVI = addsuffix(BASE, `.dvi')
37OBJ = \
38 strayman.8pt \
39 strayman.9pt \
40 strayman.10pt \
41 strayman.11pt \
42 strayman.12pt \
43 strayman.text \
44 strayman.cls
45
46pkglatex_DATA = $(OBJ)
47pkgdoc_DATA = $(DVI)
48
49SUFFIXES = .dtx .tex .dvi
50define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<"
51 latex "\def\indexing{y} \nonstopmode \input $<"
52 makeindex -s gind.ist $`'*.idx
53 latex "\def\indexing{n} \nonstopmode \input $<"')
54
26ba2c6d
MW
55$(DVI): $(AUX)
56.dtx.dvi:
1ffa9044 57 run_latex
58
59$(OBJ): $(SRC) strayman.ins
60 tex strayman.ins
61
62EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) strayman.ins Makefile.m4
63
64MAINTAINERCLEANFILES = $(OBJ) $(DVI)
65CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans
66
67Makefile.am: Makefile.m4
68 cd $(srcdir) && m4 Makefile.m4 >Makefile.am
69
70.PHONY: dvi
71
72##----- That's all, folks ---------------------------------------------------