summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-02-02 13:19:53 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-02-02 13:19:53 -0500
commite80c607e21ca96704ebbf62f4a52b1bbc9a1c223 (patch)
tree7188c23a66671517a791d39b8f68dac011b5bf69 /Makefile
Makefile compiles images in jpgs dir into a pdf with ctime datesHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1da8e9d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+imgs := $(shell ls jpgs)
+
+make.pdf : make.tex
+ pdftex make.tex
+make.tex : make.pre.tex
+ cp make.pre.tex make.tex;
+ for img in $(imgs);\
+ do echo "\img{jpgs/$$img}{$$(stat hires/$$img\
+ | awk '/Mod/ {a=substr($$0, 9, length($$0)-24); split(a, b); split(b[2], c, ":"); print b[1] "\\\\par" c[1] + 4 ":" c[2] ":" c[3];}')}" >> make.tex; done;
+ echo "\\\\bye" >> make.tex
+
+.PHONY : clean
+clean :
+ rm -f make.tex make.pdf
+