summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/graphviz/test/Makefile
blob: 5253fffd00f745a1e7e5e290bb94e22978380dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: all clean clobber

TPDF = $(shell find . -maxdepth 1 -type f -name 'pdf*.tex' | sort)
TPS = $(shell find . -maxdepth 1 -type f -name 'ps*.tex' | sort)
PS = $(TPS:.tex=.ps) 
PDF = $(TPDF:.tex=.pdf)


all: $(PS) $(PDF)

%.pdf: %.tex
	pdflatex -shell-escape $<
	pdflatex -shell-escape $<

%.dvi: %.tex
	latex -shell-escape $<
	latex -shell-escape $<

%.ps: %.dvi
	dvips $<

clean:
	rm -rf ./tmp
	rm -f master.gvpr
	rm -f master.graphviz
	rm -f *~
	rm -f *.dot
	rm -f *.ps
	rm -f *.pdf
	rm -f *.aux 
	rm -f *.glo 
	rm -f *.gls 
	rm -f *.idx 
	rm -f *.ilg 
	rm -f *.log 
	rm -f *.dvi 

clobber: clean
	rm -f $(PS)
	rm -f $(PDF)