MA0301/exam_template/Makefile

15 lines
362 B
Makefile
Raw Normal View History

2021-05-10 17:41:58 +02:00
.DEFAULT_GOAL := default
.PHONY: default python
default: python
pdflatex main.tex
2021-05-10 22:12:15 +02:00
SRC_DIR := $(shell find graphics/src -type f -printf "%f\n" -name *.txt | cut -d '.' -f1)
2021-05-10 17:41:58 +02:00
python:
2021-05-10 22:12:15 +02:00
@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