Commit | Line | Data |
---|---|---|
e673b6d1 | 1 | ## -*-m4-*- |
1ffa9044 | 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. | |
deee9d1f | 16 | ## |
1ffa9044 | 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. | |
deee9d1f | 21 | ## |
1ffa9044 | 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 | 26 | AUTOMAKE_OPTIONS = foreign |
27 | ||
8fc29298 MW |
28 | pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE} |
29 | pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE} | |
1ffa9044 | 30 | |
31 | define(`addsuffix', `patsubst(`$1', `\>', `$2')') | |
32 | define(`BASE', `strayman') | |
33 | ||
34 | AUX = gpl.tex strayman.cls | |
35 | SRC = addsuffix(BASE, `.dtx') | |
36 | DVI = addsuffix(BASE, `.dvi') | |
e673b6d1 MW |
37 | PS = addsuffix(BASE, `.ps') |
38 | PDF = addsuffix(BASE, `.pdf') | |
1ffa9044 | 39 | OBJ = \ |
40 | strayman.8pt \ | |
41 | strayman.9pt \ | |
42 | strayman.10pt \ | |
43 | strayman.11pt \ | |
44 | strayman.12pt \ | |
45 | strayman.text \ | |
46 | strayman.cls | |
47 | ||
48 | pkglatex_DATA = $(OBJ) | |
e673b6d1 | 49 | pkgdoc_DATA = $(DVI) $(PS) $(PDF) |
1ffa9044 | 50 | |
e673b6d1 | 51 | SUFFIXES = .dtx .tex .dvi .ps .pdf |
1ffa9044 | 52 | define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<" |
53 | latex "\def\indexing{y} \nonstopmode \input $<" | |
54 | makeindex -s gind.ist $`'*.idx | |
55 | latex "\def\indexing{n} \nonstopmode \input $<"') | |
56 | ||
26ba2c6d | 57 | $(DVI): $(AUX) |
e673b6d1 MW |
58 | .dtx.dvi:; run_latex |
59 | .dvi.ps:; dvips $< | |
60 | .ps.pdf:; ps2pdf $< $@ | |
1ffa9044 | 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) | |
e673b6d1 | 68 | CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans *.ps *.pdf |
1ffa9044 | 69 | |
70 | Makefile.am: Makefile.m4 | |
71 | cd $(srcdir) && m4 Makefile.m4 >Makefile.am | |
72 | ||
73 | .PHONY: dvi | |
74 | ||
75 | ##----- That's all, folks --------------------------------------------------- |