-## -*-makefile-*-
-##
-## $Id: Makefile.m4,v 1.2 2002/02/24 12:45:56 mdw Exp $
+## -*-m4-*-
##
## Build system for strayman
##
AUTOMAKE_OPTIONS = foreign
-pkglatexdir = ${texmfpath}/tex/latex/${PACKAGE}
-pkgdocdir = ${texmfpath}/doc/latex/${PACKAGE}
+pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
+pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
define(`addsuffix', `patsubst(`$1', `\>', `$2')')
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 \
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
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
Makefile.am: Makefile.m4
cd $(srcdir) && m4 Makefile.m4 >Makefile.am