aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2021-01-21 13:02:27 -0500
committerHolden Rohrer <hr@hrhr.dev>2021-01-21 13:14:55 -0500
commit27dedabde3d8b996e3c841864827f81ea206c43c (patch)
tree0c3f5ee5bf528645d9a9b881c1baa7587a57d3b6 /Makefile
parent47c60afd25e0919170f1b1a931d05c25896678b3 (diff)
automated rotation process
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 568631b..14930fd 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,8 @@ all: $(PDF)
TABLE = gen/deathtable.i gen/deathtable2.i gen/table.i gen/pvals.i
clean:
- rm -rf {report,poster,logbook}{,2}.{pdf,log} qr gen graph imgs
+ rm -rf {report,poster,logbook}{,2}.{pdf,log} qr gen graph imgs \
+ img/rot img/*.rot.jpg
.tex.pdf:
$(PDFTEX) -jobname $* $<
@@ -52,7 +53,7 @@ graph/nearest_neighbor.png report/tables.i src/conc2.i src/bullets.i
report.pdf logbook.pdf: 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-12-02-1.jpg src/conc.i \
-img/2019-12-13-1.jpg img/2019-12-13-3.rot.jpg fmt/doc.h report/tables.i
+img/2019-12-13-1.jpg img/rot fmt/doc.h report/tables.i
poster2.pdf: imgs
@@ -107,3 +108,9 @@ graph/boxplot.png: py/data2.py py/lineplot.py graph/dir
graph/lineplot.png: py/data2.py py/boxplot.py graph/dir
$(PY) py/lineplot.py
mv lineplot.png graph/
+
+img/rot:
+ for img in img/*; do \
+ magick "$${img}" -rotate 90 "$$(echo "$$img" | cut -f 1 -d '.').rot.jpg"; \
+ echo $${img}; done
+ touch img/rot