diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..de7820e --- /dev/null +++ b/Makefile @@ -0,0 +1,77 @@ +.POSIX: +.SUFFIXES: +.SUFFIXES: .tex .pdf + +PDFTEX = pdftex +PY = python3 + +all: report.pdf poster.pdf logbook.pdf + +clean: + rm -rf report.pdf poster.pdf logbook.pdf qr gen graph imgs + +.tex.pdf: + $(PDFTEX) -jobname $* $< + +qr: + mkdir qr + qrencode http://hrhr.dev/report.pdf -o qr/pdf.png + qrencode http://git.hrhr.dev/scifair/about -o qr/git.png + +report.pdf: report.tex src/abstract.i src/intro.i src/research.i \ +src/proc.i src/mats.i src/analysis.i src/conc.i report/graphs.i \ +report/tables.i report/pics.i src/biblio.i fmt/doc.h + +poster.pdf: poster.tex qr fmt/multicol.h fmt/font.h \ +src/hypo.i src/abstr.i src/research.i src/mats.i src/methods.i \ +poster/voronoi.i src/results.i src/vars.i src/notes.i src/analysis.i \ +poster/img1.i poster/img2.i poster/img3.i poster/img4.i poster/img5.i \ +img/diagram.jpg img/2019-10-18-1.jpg img/2019-12-13-2.jpg \ +img/2019-12-02-2.jpg img/2019-12-13-3.jpg img/2019-10-18-2.jpg \ +img/c.jpg img/2019-12-02-2.jpg img/2019-11-21-4.jpg img/a.jpg \ +img/code.png + +logbook.pdf: logbook.tex src/research.i src/biblio.i src/hypo.i \ +src/mats.i src/vars.i src/methods.i src/conc.i src/bullets.i \ +report/tables.i + +report.pdf logbook.pdf: img/2019-10-18-1.jpg img/2019-10-18-2.jpg \ +img/2019-10-30-1.jpg img/2019-11-21-1.jpg img/2019-11-21-2.jpg \ +img/2019-11-21-3.jpg img/2019-11-21-4.jpg img/2019-12-02-1.jpg \ +img/2019-12-02-2.jpg img/2019-12-13-1.jpg img/2019-12-13-2.jpg \ +img/2019-12-13-3.rot.jpg + +report.pdf poster.pdf logbook.pdf: fmt/com.h imgs graph/made gen/tables.i + +imgs: py/data.py py/img.py + mkdir -p imgs + cd imgs && $(PY) ../py/img.py + +gen/dir: + mkdir -p gen + touch gen/dir + +gen/tables.i: tables.orig.tex gen/deathtable gen/table gen/dir + sed -e '/%%DEATHTABLE%%/{r gen/deathtable' -e 'd}' \ + -e '/%%MAINTABLE%%/{r gen/table' -e 'd}' tables.orig.tex >gen/tables.i + +gen/deathtable: py/data.py py/deathtable.py gen/dir + $(PY) py/deathtable.py > gen/deathtable + +gen/table: py/data.py py/table.py gen/dir + $(PY) py/table.py > gen/table + +graph/dir: + mkdir -p graph + touch graph/dir + +graph/made: graph/depth_width.png graph/nearest_neighbor.png graph/dir + touch graph/made + +graph/depth_width.png: py/data.py py/depwid.py graph/dir + $(PY) py/depwid.py + mv depth_width.png graph + +graph/nearest_neighbor.png: py/data.py py/neighbor.py graph/dir + $(PY) py/neighbor.py + mv nearest_neighbor.png graph |