| 1 | ## -*-makefile-*- |
| 2 | ## |
| 3 | ## $Id: Makefile.m4,v 1.2 2002/02/24 12:45:56 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.2 2002/02/24 12:45:56 mdw |
| 32 | ## Fix banners. |
| 33 | ## |
| 34 | ## Revision 1.1 2002/02/19 23:27:57 mdw |
| 35 | ## Initial revision. |
| 36 | |
| 37 | AUTOMAKE_OPTIONS = foreign |
| 38 | |
| 39 | texmfdir = @texmfdir@ |
| 40 | pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE} |
| 41 | pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE} |
| 42 | |
| 43 | define(`addsuffix', `patsubst(`$1', `\>', `$2')') |
| 44 | define(`BASE', `strayman') |
| 45 | |
| 46 | AUX = gpl.tex strayman.cls |
| 47 | SRC = addsuffix(BASE, `.dtx') |
| 48 | DVI = addsuffix(BASE, `.dvi') |
| 49 | OBJ = \ |
| 50 | strayman.8pt \ |
| 51 | strayman.9pt \ |
| 52 | strayman.10pt \ |
| 53 | strayman.11pt \ |
| 54 | strayman.12pt \ |
| 55 | strayman.text \ |
| 56 | strayman.cls |
| 57 | |
| 58 | pkglatex_DATA = $(OBJ) |
| 59 | pkgdoc_DATA = $(DVI) |
| 60 | |
| 61 | SUFFIXES = .dtx .tex .dvi |
| 62 | define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<" |
| 63 | latex "\def\indexing{y} \nonstopmode \input $<" |
| 64 | makeindex -s gind.ist $`'*.idx |
| 65 | latex "\def\indexing{n} \nonstopmode \input $<"') |
| 66 | |
| 67 | $(DVI): $(AUX) |
| 68 | .dtx.dvi: |
| 69 | run_latex |
| 70 | |
| 71 | $(OBJ): $(SRC) strayman.ins |
| 72 | tex strayman.ins |
| 73 | |
| 74 | EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) strayman.ins Makefile.m4 |
| 75 | |
| 76 | MAINTAINERCLEANFILES = $(OBJ) $(DVI) |
| 77 | CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans |
| 78 | |
| 79 | Makefile.am: Makefile.m4 |
| 80 | cd $(srcdir) && m4 Makefile.m4 >Makefile.am |
| 81 | |
| 82 | .PHONY: dvi |
| 83 | |
| 84 | ##----- That's all, folks --------------------------------------------------- |