From 2b8252c70fda52daab91672a23e7ecbfa09861c4 Mon Sep 17 00:00:00 2001 From: Sander van Dijk Date: Thu, 27 Apr 2006 22:11:07 +0000 Subject: [PATCH] make the Makefile in the doc/ dir more portable (%.dvi: %.tex is GNU make only, well at least it doesn't work on NetBSD make) --- doc/Makefile | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 36bdfccf..7a66b10f 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,18 +1,25 @@ # window manager improved 2 user guide -SRC = guide_en.tex wmii.tex -Odvi = ${SRC:.tex=.dvi} -Opdf = ${SRC:.tex=.pdf} -Ohtml = ${SRC:.tex=.html} -all: ${Odvi} ${Opdf} #${Ohtml} -%.dvi: %.tex +SRC = guide_en.tex wmii.tex +DVI = ${SRC:.tex=.dvi} +PDF = ${SRC:.tex=.pdf} +HTML = ${SRC:.tex=.html} + +all: ${DVI} ${PDF} #${HTML} + +.SUFFIXES: .tex .dvi .pdf .html + +.tex.dvi: latex -interaction=batchmode $< latex -interaction=batchmode $< -%.pdf: %.tex + +.tex.pdf: pdflatex $< pdflatex $< -%.html: %.tex + +.tex.html: latex2html $< + clean: rm -f *.pdf *.dvi *.log *.aux *.out *.toc rm -rf guide_en