MA0301/exam/Makefile

15 lines
362 B
Makefile
Raw Permalink Normal View History

2021-08-29 19:57:57 +02:00
.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