docs/DesignPatterns

annotate Makefile @ 2:961cb2d9b1b5

added make clean
author meillo@marmaro.de
date Wed, 30 May 2007 12:40:26 +0200
parents fe9c99202977
children 0923f2ae50a5
rev   line source
meillo@1 1 # Makefile for latex docs
meillo@0 2
meillo@0 3 SRC = main.tex
meillo@0 4 OBJ = ${SRC:.tex=.pdf}
meillo@0 5
meillo@0 6 all: xpdf
meillo@0 7
meillo@0 8 #.tex.pdf:
meillo@0 9 # @echo pdflatex $<
meillo@0 10 # @pdflatex $<
meillo@0 11
meillo@0 12 ${OBJ}: ${SRC}
meillo@0 13 @echo pdflatex $@
meillo@0 14 @pdflatex ${SRC}
meillo@0 15 @pdflatex ${SRC}
meillo@0 16
meillo@0 17 xpdf: ${OBJ}
meillo@0 18 @echo xpdf $@
meillo@0 19 @xpdf -z page ${OBJ}
meillo@0 20 @rm ${OBJ}
meillo@0 21
meillo@2 22 clean:
meillo@2 23 echo 'cleaning ...'
meillo@2 24 rm *.{aux,lof,log,lot,nav,out,snm,toc}
meillo@0 25
meillo@0 26 .PHONY: all xpdf