fb50dc45 |
1 | ## -*-makefile-*- |
2 | ## |
3 | ## $Id: Makefile.m4,v 1.1 2002/02/24 12:47:11 mdw Exp $ |
4 | ## |
5 | ## Build system for mdwslides |
6 | ## |
7 | ## (c) 2002 Mark Wooding |
8 | ## |
9 | |
10 | ##----- Licensing notice ---------------------------------------------------- |
11 | ## |
12 | ## This file is part of the mdwslides document class. |
13 | ## |
14 | ## mdwslides 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 | ## mdwslides 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 mdwslides; 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/24 12:47:11 mdw |
32 | ## Initial revision. |
33 | ## |
34 | |
35 | AUTOMAKE_OPTIONS = foreign |
36 | |
37 | texmfdir = @texmfdir@ |
38 | pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE} |
39 | pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE} |
40 | |
41 | define(`addsuffix', `patsubst(`$1', `\>', `$2')') |
42 | define(`BASE', `mdwslides') |
43 | |
44 | AUX = gpl.tex mdwslides.cls |
45 | SRC = addsuffix(BASE, `.dtx') |
46 | DVI = addsuffix(BASE, `.dvi') |
47 | OBJ = mdwslides.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 | |
58 | .dtx.dvi: $(AUX) |
59 | run_latex |
60 | |
61 | $(OBJ): $(SRC) mdwslides.ins |
62 | tex mdwslides.ins |
63 | |
64 | EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) mdwslides.ins Makefile.m4 |
65 | |
66 | MAINTAINERCLEANFILES = $(OBJ) $(DVI) |
67 | CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans |
68 | |
69 | Makefile.am: Makefile.m4 |
70 | cd $(srcdir) && m4 Makefile.m4 >Makefile.am |
71 | |
72 | .PHONY: dvi |
73 | |
74 | ##----- That's all, folks --------------------------------------------------- |