-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (16 loc) · 853 Bytes
/
Makefile
File metadata and controls
24 lines (16 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
BASEDIR=$(CURDIR)
OUTPUTDIR=$(BASEDIR)/webroot
S3_BUCKET=ethan.codebarber.com
help:
@echo 'Makefile for Web site @ $(S3_BUCKET) '
@echo ' '
@echo 'Usage: '
@echo ' make publish Upload $(OUTPUTDIR) '
@echo ' make s3_upload upload the web site via S3 '
@echo ' make upload upload the web site via S3 '
@echo ' '
upload: s3_upload
publish: s3_upload
s3_upload:
aws s3 sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl public-read --delete
.PHONY: help publish s3_upload upload