# --- Configuration --- PY := python3 SCRIPT := draw_board_grid.py TEX := pdflatex CASES := visgrid worstcase PDFS := $(addsuffix .pdf,$(CASES)) # --- Default target --- .PHONY: all all: $(PDFS) # --- Rules --- visgrid.tex: visgrid.txt $(PY) $(SCRIPT) $< --grid > $@ worstcase.tex: worstcase.txt $(PY) $(SCRIPT) $< --grid --no-fluff > $@ %.pdf: %.tex $(TEX) $< # --- Cleanup --- .PHONY: clean clean: rm -f visgrid.aux visgrid.log visgrid.out visgrid.synctex.gz rm -f worstcase.aux worstcase.log worstcase.out worstcase.synctex.gz