smart_brain_test/Makefile

39 lines
1.1 KiB
Makefile
Raw Normal View History

OUTDIR=testresults
TEXFILE=$(OUTDIR)/testrun.tex
PDFFILE=$(OUTDIR)/testrun.pdf
TEXFILE_FULL=$(OUTDIR)/testrun_full.tex
PDFFILE_FULL=$(OUTDIR)/testrun_full.pdf
run: test_smoke pdf view pdf_full clean
@echo FINISHED...
run_full: test_full pdf view pdf_full clean
@echo FINISHED...
test_smoke:
venv/bin/python smart_brain_test.py test.all.smoke
test_full:
venv/bin/python smart_brain_test.py test.all.full
pdf:
@latexmk -pdf -quiet -pdflatex="pdflatex -interaction=nonstopmode" -output-directory=$(OUTDIR) -use-make $(TEXFILE) > /dev/null
pdf_full:
@latexmk -pdf -quiet -pdflatex="pdflatex -interaction=nonstopmode" -output-directory=$(OUTDIR) -use-make $(TEXFILE_FULL) > /dev/null
view:
@open $(PDFFILE)
view_full:
@open $(PDFFILE_FULL)
clean:
@latexmk -quiet -output-directory=$(OUTDIR) -c $(TEXFILE) > /dev/null
@latexmk -quiet -output-directory=$(OUTDIR) -c $(TEXFILE_FULL) > /dev/null
@find . -name *~ -type f | xargs rm -f
@find . -name __pycache__ -type d | xargs rm -rf
%:
venv/bin/python smart_brain_test.py $@
$(MAKE) pdf_full view_full pdf clean