X-Git-Url: https://git.distorted.org.uk/~mdw/strayman/blobdiff_plain/9398428ac37194a610aa6c41a575b965cee30a45..HEAD:/Makefile.m4 diff --git a/Makefile.m4 b/Makefile.m4 index 0ce54dd..d9c2e07 100644 --- a/Makefile.m4 +++ b/Makefile.m4 @@ -1,6 +1,4 @@ -## -*-makefile-*- -## -## $Id: Makefile.m4,v 1.2 2002/02/24 12:45:56 mdw Exp $ +## -*-m4-*- ## ## Build system for strayman ## @@ -15,19 +13,16 @@ ## 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. -## +## ## strayman 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 strayman; if not, write to the Free Software Foundation, ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -AUTOMAKE_OPTIONS = foreign - -texmfdir = @texmfdir@ pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE} pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE} @@ -37,6 +32,8 @@ define(`BASE', `strayman') AUX = gpl.tex strayman.cls SRC = addsuffix(BASE, `.dtx') DVI = addsuffix(BASE, `.dvi') +PS = addsuffix(BASE, `.ps') +PDF = addsuffix(BASE, `.pdf') OBJ = \ strayman.8pt \ strayman.9pt \ @@ -47,17 +44,18 @@ OBJ = \ strayman.cls pkglatex_DATA = $(OBJ) -pkgdoc_DATA = $(DVI) +pkgdoc_DATA = $(DVI) $(PS) $(PDF) -SUFFIXES = .dtx .tex .dvi +SUFFIXES = .dtx .tex .dvi .ps .pdf 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 $<"') $(DVI): $(AUX) -.dtx.dvi: - run_latex +.dtx.dvi:; run_latex +.dvi.ps:; dvips $< +.ps.pdf:; ps2pdf $< $@ $(OBJ): $(SRC) strayman.ins tex strayman.ins @@ -65,11 +63,18 @@ $(OBJ): $(SRC) strayman.ins EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) strayman.ins Makefile.m4 MAINTAINERCLEANFILES = $(OBJ) $(DVI) -CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans +CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans *.ps *.pdf + +dist-hook:: + echo $(VERSION) >$(distdir)/RELEASE +EXTRA_DIST += auto-version Makefile.am: Makefile.m4 cd $(srcdir) && m4 Makefile.m4 >Makefile.am .PHONY: dvi +EXTRA_DIST += debian/changelog debian/control debian/copyright debian/compat +EXTRA_DIST += debian/rules + ##----- That's all, folks ---------------------------------------------------