TEX = pdflatex BIBTEX = bibtex PROJ = main TEXFILE = main.tex PYTHON = python all: pdf # pdf: $(TEXFILE) # $(TEX) -shell-escape $< # $(BIBTEX) $(PROJ) # $(TEX) -shell-escape $< figures/%.pdf: figures/%.py $(PYTHON) $< pdf: $(TEXFILE) figures/kernels.pdf figures/mlfmm.pdf figures/cpu_matvec.pdf $(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) \ figures/kernels.pdf \ figures/kernels.png \ figures/mlfmm.pdf \ figures/mlfmm.png \ figures/cpu_matvec.pdf \ figures/cpu_matvec.png \ texput.log \ main.pyg rm -rf \ _minted-$(PROJ)