Commit | Line | Data |
---|---|---|
1ffa9044 | 1 | ## -*-makefile-*- |
2 | ## | |
e8c85bbe | 3 | ## $Id: Makefile.m4,v 1.2 2002/02/24 12:45:56 mdw Exp $ |
1ffa9044 | 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 | ||
1ffa9044 | 28 | AUTOMAKE_OPTIONS = foreign |
29 | ||
30 | texmfdir = @texmfdir@ | |
31 | pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE} | |
32 | pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE} | |
33 | ||
34 | define(`addsuffix', `patsubst(`$1', `\>', `$2')') | |
35 | define(`BASE', `strayman') | |
36 | ||
37 | AUX = gpl.tex strayman.cls | |
38 | SRC = addsuffix(BASE, `.dtx') | |
39 | DVI = addsuffix(BASE, `.dvi') | |
40 | OBJ = \ | |
41 | strayman.8pt \ | |
42 | strayman.9pt \ | |
43 | strayman.10pt \ | |
44 | strayman.11pt \ | |
45 | strayman.12pt \ | |
46 | strayman.text \ | |
47 | strayman.cls | |
48 | ||
49 | pkglatex_DATA = $(OBJ) | |
50 | pkgdoc_DATA = $(DVI) | |
51 | ||
52 | SUFFIXES = .dtx .tex .dvi | |
53 | define(`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 | ||
26ba2c6d MW |
58 | $(DVI): $(AUX) |
59 | .dtx.dvi: | |
1ffa9044 | 60 | run_latex |
61 | ||
62 | $(OBJ): $(SRC) strayman.ins | |
63 | tex strayman.ins | |
64 | ||
65 | EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) strayman.ins Makefile.m4 | |
66 | ||
67 | MAINTAINERCLEANFILES = $(OBJ) $(DVI) | |
68 | CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans | |
69 | ||
70 | Makefile.am: Makefile.m4 | |
71 | cd $(srcdir) && m4 Makefile.m4 >Makefile.am | |
72 | ||
73 | .PHONY: dvi | |
74 | ||
75 | ##----- That's all, folks --------------------------------------------------- |