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