Initial revision.
[strayman] / Makefile.m4
CommitLineData
1ffa9044 1## -*-makefile-*-
2##
3## $Id: Makefile.m4,v 1.1 2002/02/19 23:27:57 mdw Exp $
4##
5## Build system for strayman
6##
7## (c) 2002 Mark Wooding
8##
9
10##----- Licensing notice ----------------------------------------------------
11##
12## This file is part of the Straylight Manual LaTeX document class.
13##
14## strayman 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## strayman 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 strayman; 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/19 23:27:57 mdw
32## Initial revision.
33##
34## Revision 1.3 2002/02/19 22:49:57 mdw
35## Use lowercase names for font definition files.
36##
37## Revision 1.2 2002/02/03 20:57:21 mdw
38## Sort out distribution.
39##
40## Revision 1.1 2002/02/03 20:49:02 mdw
41## Checkin for new build system.
42##
43
44AUTOMAKE_OPTIONS = foreign
45
46texmfdir = @texmfdir@
47pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
48pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
49
50define(`addsuffix', `patsubst(`$1', `\>', `$2')')
51define(`BASE', `strayman')
52
53AUX = gpl.tex strayman.cls
54SRC = addsuffix(BASE, `.dtx')
55DVI = addsuffix(BASE, `.dvi')
56OBJ = \
57 strayman.8pt \
58 strayman.9pt \
59 strayman.10pt \
60 strayman.11pt \
61 strayman.12pt \
62 strayman.text \
63 strayman.cls
64
65pkglatex_DATA = $(OBJ)
66pkgdoc_DATA = $(DVI)
67
68SUFFIXES = .dtx .tex .dvi
69define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<"
70 latex "\def\indexing{y} \nonstopmode \input $<"
71 makeindex -s gind.ist $`'*.idx
72 latex "\def\indexing{n} \nonstopmode \input $<"')
73
74.dtx.dvi: $(AUX)
75 run_latex
76
77$(OBJ): $(SRC) strayman.ins
78 tex strayman.ins
79
80EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) strayman.ins Makefile.m4
81
82MAINTAINERCLEANFILES = $(OBJ) $(DVI)
83CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans
84
85Makefile.am: Makefile.m4
86 cd $(srcdir) && m4 Makefile.m4 >Makefile.am
87
88.PHONY: dvi
89
90##----- That's all, folks ---------------------------------------------------