view Makefile @ 2:961cb2d9b1b5

added make clean
author meillo@marmaro.de
date Wed, 30 May 2007 12:40:26 +0200
parents fe9c99202977
children 0923f2ae50a5
line wrap: on
line source

# Makefile for latex docs

SRC = main.tex
OBJ = ${SRC:.tex=.pdf}

all: xpdf

#.tex.pdf:
#	@echo pdflatex $<
#	@pdflatex $<

${OBJ}: ${SRC}
	@echo pdflatex $@
	@pdflatex ${SRC}
	@pdflatex ${SRC}

xpdf: ${OBJ}
	@echo xpdf $@
	@xpdf -z page ${OBJ}
	@rm ${OBJ}

clean:
	echo 'cleaning ...'
	rm *.{aux,lof,log,lot,nav,out,snm,toc}

.PHONY: all xpdf