X-Git-Url: https://git.distorted.org.uk/~mdw/mdwtools/blobdiff_plain/950ff97f551bce74eabab0be18f9703ec00d701d..d03425ae7b92642a8191def60419d91a0d309fb2:/Makefile.m4 diff --git a/Makefile.m4 b/Makefile.m4 index 79c7b74..9ca06e4 100644 --- a/Makefile.m4 +++ b/Makefile.m4 @@ -1,7 +1,5 @@ ## -*-makefile-*- ## -## $Id: Makefile.m4,v 1.3 2002/02/19 22:49:57 mdw Exp $ -## ## Build system for mdwtools ## ## (c) 2002 Mark Wooding @@ -15,83 +13,90 @@ ## 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. -## +## ## mdwtools 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 mdwtools; 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.3 2002/02/19 22:49:57 mdw -## Use lowercase names for font definition files. -## -## Revision 1.2 2002/02/03 20:57:21 mdw -## Sort out distribution. -## -## Revision 1.1 2002/02/03 20:49:02 mdw -## Checkin for new build system. -## - AUTOMAKE_OPTIONS = foreign -texmfdir = @texmfdir@ pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE} pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE} define(`addsuffix', `patsubst(`$1', `\>', `$2')') define(`BASE', `\ - at cmtt crypto doafter exercise footnote \ - mdwlist mdwmath mdwtab mdwthm poetry sverb syntax') + at centre cmtt colour crypto doafter exercise footnote mdwkey \ + mdwlist mdwmath mdwref mdwtab mdwthm poetry slowbox sverb syntax') AUX = mdwtools.tex gpl.tex SRC = addsuffix(BASE, `.dtx') DVI = addsuffix(BASE, `.dvi') mdwtools.dvi +PS = addsuffix(BASE, `.ps') mdwtools.ps +PDF = addsuffix(BASE, `.pdf') mdwtools.pdf OBJ = \ at.sty \ cmtt.sty mttcmtt.fd mttenc.def \ + colour.sty \ crypto.sty \ doafter.sty \ doafter.tex \ exercise.sty \ footnote.sty \ + mdwkey.sty \ mdwlist.sty \ mdwmath.sty \ - mdwtab.sty mathenv.sty \ + mdwref.sty \ + mdwtab.sty mathenv.sty mtcolour.sty mtcolor.sty \ mdwthm.sty mdwmargin.thm \ poetry.sty \ - sverb.sty \ + slowbox.sty \ + sverb.sty svcolor.sty svcolour.sty svsplit.sty \ syntax.sty pkglatex_DATA = $(OBJ) mdwtools.tex -pkgdoc_DATA = $(DVI) +pkgdoc_DATA = $(DVI) $(PS) $(PDF) -SUFFIXES = .dtx .tex .dvi +SUFFIXES = .dtx .tex .dvi .ps 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) +.dtx.dvi: run_latex -.tex.dvi: gpl.tex +.tex.dvi: run_latex +.dvi.ps: + dvips -e0 -o $@ $< +.ps.pdf: + ps2pdf $< $@ + +$(DVI): gpl.tex $(OBJ) mdwtools.tex -$(OBJ): $(SRC) mdwtools.ins +$(wordlist 2,$(words $(OBJ)),$(OBJ)): $(firstword $(OBJ)) +$(firstword $(OBJ)): $(SRC) mdwtools.ins tex mdwtools.ins -EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) mdwtools.ins Makefile.m4 +EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) $(PS) mdwtools.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 + m4 $(srcdir)/Makefile.m4 >Makefile.am.new + mv Makefile.am.new $(srcdir)/Makefile.am + +dist-hook:: + echo $(VERSION) >$(distdir)/RELEASE +EXTRA_DIST += auto-version + +EXTRA_DIST += debian/changelog debian/control debian/copyright debian/compat +EXTRA_DIST += debian/rules .PHONY: dvi