diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-05-28 18:42:16 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-05-28 18:42:16 -0400 |
commit | d6ed0246fef2253ad8f4c4e98fcf27c016bdbd37 (patch) | |
tree | 11bfdb7a69b0ae7f8a738ff09db9650685090dd9 | |
parent | 48649e6423710ab1ce56ef1bec2310c363aebde3 (diff) |
reorganized makefile
-rw-r--r-- | Makefile.orig | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile.orig b/Makefile.orig index 4159232..b0a3d3e 100644 --- a/Makefile.orig +++ b/Makefile.orig @@ -6,10 +6,8 @@ QR = outputs/qr.png outputs/qr-source.png PYTHON = python3 PDFTEX = pdftex GHOSTSCRIPT = gs -pdfs: $(PDFS) -graph: - mkdir -p graph +pdfs: $(PDFS) png: outputs/poster.png clean: rm -rf imgs graph gen/tables.tex data/tables.tex $(PDFS) $(QR) @@ -19,19 +17,20 @@ imgs: python/data.py python/img.py cd imgs && \ $(PYTHON) ../python/img.py +graph: + mkdir -p graph + +GRAPH = graph/depth_width.png graph/nearest_neighbor.png 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: poster/document.pdf $(GHOSTSCRIPT) -sDEVICE=pngalpha -r288 -o outputs/poster.png outputs/poster.pdf -$(PDFS): gen/tables.tex imgs graph/made +$(PDFS): gen/tables.tex imgs $(GRAPH) .tex.pdf: cd ${@D} && \ |