Files
easybits/Makefile

15 lines
325 B
Makefile

S3_BUCKET = s3://docs.makingwithcode.org/easybits/
CF_DISTRIBUTION = EPA6NHZ2LEH1A
.PHONY: build deploy clean
build:
$(MAKE) -C docs html
deploy: build
aws s3 sync docs/_build/html $(S3_BUCKET)
aws cloudfront create-invalidation --distribution-id $(CF_DISTRIBUTION) --paths "/easybits/*"
clean:
$(MAKE) -C docs clean