MA0301/exam_template/Makefile

15 lines
362 B
Makefile

.DEFAULT_GOAL := default
.PHONY: default python
default: python
pdflatex main.tex
SRC_DIR := $(shell find graphics/src -type f -printf "%f\n" -name *.txt | cut -d '.' -f1)
python:
@for f in $(SRC_DIR); \
do \
echo -e "\033[33mCOMPILING $$f.tex\033[0m"; \
python ../exam_template/python/run.py graphics/src/$$f.txt graphics/$$f.tex; \
echo ""; \
done