Files
cem17/Makefile
Carl Pearson 3c92c7e9b1 figures
2017-05-07 15:34:52 -07:00

36 lines
699 B
Makefile

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)