4a30e291e87b7a5f0afdc2da6f1df8aaa980c905
[strayman] / Makefile.m4
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
44 AUTOMAKE_OPTIONS = foreign
45
46 texmfdir = @texmfdir@
47 pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
48 pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
49
50 define(`addsuffix', `patsubst(`$1', `\>', `$2')')
51 define(`BASE', `strayman')
52
53 AUX = gpl.tex strayman.cls
54 SRC = addsuffix(BASE, `.dtx')
55 DVI = addsuffix(BASE, `.dvi')
56 OBJ = \
57 strayman.8pt \
58 strayman.9pt \
59 strayman.10pt \
60 strayman.11pt \
61 strayman.12pt \
62 strayman.text \
63 strayman.cls
64
65 pkglatex_DATA = $(OBJ)
66 pkgdoc_DATA = $(DVI)
67
68 SUFFIXES = .dtx .tex .dvi
69 define(`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
80 EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) strayman.ins Makefile.m4
81
82 MAINTAINERCLEANFILES = $(OBJ) $(DVI)
83 CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans
84
85 Makefile.am: Makefile.m4
86 cd $(srcdir) && m4 Makefile.m4 >Makefile.am
87
88 .PHONY: dvi
89
90 ##----- That's all, folks ---------------------------------------------------