3 ## Build system for strayman
5 ## (c) 2002 Mark Wooding
8 ##----- Licensing notice ----------------------------------------------------
10 ## This file is part of the Straylight Manual LaTeX document class.
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.
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.
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.
26 pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
27 pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
29 define(`addsuffix', `patsubst(`$1', `\>', `$2')')
30 define(`BASE', `strayman')
32 AUX = gpl.tex strayman.cls
33 SRC = addsuffix(BASE, `.dtx')
34 DVI = addsuffix(BASE, `.dvi')
35 PS = addsuffix(BASE, `.ps')
36 PDF = addsuffix(BASE, `.pdf')
46 pkglatex_DATA = $(OBJ)
47 pkgdoc_DATA = $(DVI) $(PS) $(PDF)
49 SUFFIXES = .dtx .tex .dvi .ps .pdf
50 define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<"
51 latex "\def\indexing{y} \nonstopmode \input $<"
52 makeindex -s gind.ist $`'*.idx
53 latex "\def\indexing{n} \nonstopmode \input $<"')
58 .ps.pdf:; ps2pdf $< $@
60 $(OBJ): $(SRC) strayman.ins
63 EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) strayman.ins Makefile.m4
65 MAINTAINERCLEANFILES = $(OBJ) $(DVI)
66 CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans *.ps *.pdf
69 echo $(VERSION) >$(distdir)/RELEASE
70 EXTRA_DIST += auto-version
72 Makefile.am: Makefile.m4
73 cd $(srcdir) && m4 Makefile.m4 >Makefile.am
77 EXTRA_DIST += debian/changelog debian/control debian/copyright debian/compat
78 EXTRA_DIST += debian/rules
80 ##----- That's all, folks ---------------------------------------------------