Terxo
[qualita.git] / Makefile
blobcb3f7f087bc36872467d424c4acb9b0d436a977d
1 UNAME=$(shell uname)
3 target = qualita
4 deps = Makefile *.tex
6 all: $(target).pdf
8 $(target).pdf: $(target).tex $(deps)
9 pdflatex $(target).tex
10 pdflatex $(target).tex
12 %.1: %.mp
13 texexec --mptex $<
15 .PHONY: clean view backup
17 clean:
18 rm -f $(target).{aux,dvi,log,out,toc,lof,pdf} *.{1,mpx,mpo,log} tmpgraph* *.tmp mpgraph.mp *~
20 view: $(target).pdf
21 ifeq ($(UNAME),Darwin)
22 open -a /Applications/Preview.app $(target).pdf
23 else
24 xpdf $(target).pdf $(PAGE)
25 endif
27 backup:
28 tar zcvf ../$(target)-backup.tar.gz .