TEX = pdflatex BIBTEX = bibtex PROJ = main TEXFILE = main.tex PYTHON = python all: pdf # pdf: $(TEXFILE) # $(TEX) -shell-escape $< # $(BIBTEX) $(PROJ) # $(TEX) -shell-escape $< pdf: $(TEXFILE) $(PYTHON) figures/plots.py $(TEX) -shell-escape $< $(TEX) -shell-escape $< watch: $(info ************ WATCHING FOR CHANGES ************) watchman watch $(shell pwd) watchman -- trigger $(shell pwd) pyfiles 'figures/*.py' -- ls -l unwatch: $(info ************ CANCELLING WATCH ************) watchman watch-del "$(shell pwd)" clean: rm -f \ $(TEXFILE:.tex=.pdf) \ $(TEXFILE:.tex=.aux) \ $(TEXFILE:.tex=.log) \ $(TEXFILE:.tex=.toc) \ texput.log \ main.pyg rm -rf \ _minted-$(PROJ)