123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- OUTDIR=testresults
- TEXFILE=$(OUTDIR)/testrun.tex
- PDFFILE=$(OUTDIR)/testrun.pdf
- TEXFILE_FULL=$(OUTDIR)/testrun_full.tex
- PDFFILE_FULL=$(OUTDIR)/testrun_full.pdf
-
- smoke: test_smoke pdf view pdf_full clean
- @echo FINISHED...
-
- short: test_short pdf view pdf_full clean
- @echo FINISHED...
-
- full: test_full pdf view pdf_full clean
- @echo FINISHED...
-
- test_smoke:
- venv/bin/python smart_brain_test.py test.all.smoke
-
- test_short:
- venv/bin/python smart_brain_test.py test.all.short
-
- 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
|