ASSETS := imgs/made graph/depth_width.png graph/nearest_neighbor.png $(shell mkdir -p imgs graph outputs) .PHONY: all all: outputs/poster.pdf outputs/report.pdf outputs/logbook.pdf .PHONY: png png: outputs/poster.png .PHONY: clean clean: rm -rf imgs graph outputs data/tables.tex imgs/made: python/data.py python/img.py cd imgs && \ python3 ../python/img.py touch imgs/made graph/depth_width.png: python/data.py python/depwid.py cd graph && python3 ../python/depwid.py graph/nearest_neighbor.png: python/data.py python/neighbor.py cd graph && python3 ../python/neighbor.py outputs/poster.png: outputs/poster.pdf gs -sDEVICE=pngalpha -r288 -o outputs/poster.png outputs/poster.pdf outputs/%.pdf: data/tables.tex $(wildcard %/*.tex) $(ASSETS) cd $* && pdftex document.tex >/dev/null rm $*/document.log mv $*/document.pdf $@ outputs/poster.pdf: outputs/qr-source.png outputs/qr.png outputs/logbook.pdf outputs/report.pdf: generic.tex logbook/tables.tex poster/tables.tex: data/tables.tex outputs/qr.png: qrencode https://hrhr.dev/report.pdf -o outputs/qr.png outputs/qr-source.png: qrencode https://git.hrhr.dev/scifair -o outputs/qr-source.png data/tables.tex: data/maketables.sh data/tables.orig.tex data/maketables.sh