git » jacl.git » commit 8696390

paper deploy target

author Alan Dipert
2020-02-21 15:26:45 UTC
committer Alan Dipert
2020-02-21 15:26:45 UTC
parent 3cbc877d760a406f1e62312db0b71c380e8b6949

paper deploy target

paper/Makefile +6 -1

diff --git a/paper/Makefile b/paper/Makefile
index 0d9e4a6..0438c4e 100644
--- a/paper/Makefile
+++ b/paper/Makefile
@@ -1,12 +1,17 @@
 .PHONY=all clean
 
-DOC=jacl-els-2020.tex
+DOC := jacl-els-2020.tex
+CF_DIST := E6GOTXLS9MCZF
 
 all: jacl-els-2020.pdf
 
 jacl-els-2020.pdf: jacl-els-2020.tex jacl-els-2020.bib
 	rubber --pdf $<
 
+deploy: jacl-els-2020.pdf
+	aws s3 cp jacl-els-2020.pdf s3://tailrecursion.com/\~alan/documents/jacl-els-2020-draft.pdf
+	aws cloudfront create-invalidation --distribution-id $(CF_DIST) --paths '/*'
+
 clean:
 	rm -f $(DOC:.tex=.out)
 	rubber --pdf --clean $(DOC)