## -*-makefile-*- ## ## $Id: Makefile.m4,v 1.1 2002/02/24 12:47:11 mdw Exp $ ## ## Build system for mdwslides ## ## (c) 2002 Mark Wooding ## ##----- Licensing notice ---------------------------------------------------- ## ## This file is part of the mdwslides document class. ## ## mdwslides is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## mdwslides is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with mdwslides; if not, write to the Free Software Foundation, ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ##----- Revision history ---------------------------------------------------- ## ## $Log: Makefile.m4,v $ ## Revision 1.1 2002/02/24 12:47:11 mdw ## Initial revision. ## AUTOMAKE_OPTIONS = foreign texmfdir = @texmfdir@ pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE} pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE} define(`addsuffix', `patsubst(`$1', `\>', `$2')') define(`BASE', `mdwslides') AUX = gpl.tex mdwslides.cls SRC = addsuffix(BASE, `.dtx') DVI = addsuffix(BASE, `.dvi') OBJ = mdwslides.cls pkglatex_DATA = $(OBJ) pkgdoc_DATA = $(DVI) SUFFIXES = .dtx .tex .dvi define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<" latex "\def\indexing{y} \nonstopmode \input $<" makeindex -s gind.ist $`'*.idx latex "\def\indexing{n} \nonstopmode \input $<"') .dtx.dvi: $(AUX) run_latex $(OBJ): $(SRC) mdwslides.ins tex mdwslides.ins EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) mdwslides.ins Makefile.m4 MAINTAINERCLEANFILES = $(OBJ) $(DVI) CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans Makefile.am: Makefile.m4 cd $(srcdir) && m4 Makefile.m4 >Makefile.am .PHONY: dvi ##----- That's all, folks ---------------------------------------------------