Ian Jauslin
summaryrefslogtreecommitdiff
blob: bade7d007341b32aa2f5bc55d2d6ffd95b448718 (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
PROJECTNAME=contour

PDFS=$(addsuffix .pdf, $(PROJECTNAME))

all: $(PDFS)

$(PDFS): poles.tikz.tex
	pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)

poles.tikz.tex:
	python3 contour.py > poles.tikz.tex

install: $(PDFS)
	cp $^ $(INSTALLDIR)/

$(LIBS):
	ln -fs libs/$@ ./

clean-libs:
	rm -f $(LIBS)

clean-aux:
	rm -f $(addsuffix .aux, $(PROJECTNAME))
	rm -f $(addsuffix .log, $(PROJECTNAME))
	rm -f poles.tikz.tex

clean-tex:
	rm -f $(PDFS)

clean: clean-libs clean-aux clean-tex