git » jacl.git » master » tree

[master] / papers / Makefile

.PHONY=all deploy clean

DOCS := jacl-els-2020.tex jacl-demo-els-2020.tex
BIB := jacl-els-2020.bib
PDFS := $(DOCS:.tex=.pdf)
CF_DIST := E6GOTXLS9MCZF

all: $(PDFS)

%.pdf: %.tex $(BIB)
	rubber --pdf $<

deploy: $(PDFS)
	aws s3 cp $< s3://tailrecursion.com/\~alan/documents/
	aws cloudfront create-invalidation --distribution-id $(CF_DIST) --paths '/*'

clean:
	rm -f $(DOCS:.tex=.out)
	rubber --pdf --clean $(DOCS)