.POSIX: .SUFFIXES: .tex .pdf DIRS = outputs graph PDFS = poster/document.pdf report/document.pdf logbook/document.pdf PYTHON = python3 PDFTEX = pdftex GHOSTSCRIPT = gs pdfs: outputs/poster.pdf outputs/report.pdf outputs/logbook.pdf $(DIRS): mkdir -p $@ png: outputs/poster.png clean: rm -rf imgs gen/tables.tex $(DIRS) data/tables.tex $(PDFS) imgs: python/data.py python/img.py mkdir -p imgs cd imgs && \ $(PYTHON) ../python/img.py graph/depth_width.png: python/data.py python/depwid.py graph cd graph && $(PYTHON) ../python/depwid.py graph/nearest_neighbor.png: python/data.py python/neighbor.py graph cd graph && $(PYTHON) ../python/neighbor.py graph/made: graph/depth_width.png graph/nearest_neighbor.png graph touch graph/made outputs/poster.png: outputs/poster.pdf outputs $(GHOSTSCRIPT) -sDEVICE=pngalpha -r288 -o outputs/poster.png outputs/poster.pdf $(PDFS): gen/tables.tex imgs graph/made .tex.pdf: cd ${@D} && \ $(PDFTEX) document.tex >/dev/null rm ${@D}/document.log poster/document.pdf: outputs/qr-source.png outputs/qr.png logbook/document.pdf report/document.pdf: generic.tex logbook/tables.tex poster/tables.tex: data/tables.tex outputs/qr.png: outputs qrencode https://hrhr.dev/report.pdf -o outputs/qr.png outputs/qr-source.png: outputs qrencode https://git.hrhr.dev/scifair -o outputs/qr-source.png