forked from ieee-vgtc/ieeevis.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (38 loc) · 1.43 KB
/
Makefile
File metadata and controls
55 lines (38 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
PRODUCTION_BUCKET=ieeevis.org
STAGING_BUCKET=staging.ieeevis.org
REDESIGN_BUCKET=redesign.ieeevis.org
PRODUCTION_BRANCH=production
STAGING_BRANCH=master
REDESIGN_BRANCH=redesign
all: site
site:
./scripts/check_duplicate_permalinks.py
bundle exec jekyll build
./scripts/fix_file_extensions.sh
production: site
cd _site && ../scripts/sync_with_s3_boto.py $(PRODUCTION_BRANCH) $(PRODUCTION_BUCKET)
staging: site
cd _site && ../scripts/sync_with_s3_boto.py $(STAGING_BRANCH) $(STAGING_BUCKET)
redesign: site
cd _site && ../scripts/sync_with_s3_boto.py $(REDESIGN_BRANCH) $(REDESIGN_BUCKET)
check: check-bad-links check-permalink-paths check-content-expiration
################################################################################
lint: check-bad-links check-permalink-paths check-content-expiration
check-bad-links:
./scripts/check-links.sh
check-permalink-paths:
./scripts/check-permalink-paths.py
check-content-expiration:
./scripts/check-content-expiration.py
################################################################################
# sometimes you might want to clean the entire bucket - but this can
# eat a lot of bandwidth, and the website will be missing content for
# a little while. BEWARE
staging-clean:
aws s3 rm s3://$(STAGING_BUCKET)/ --recursive
production-clean:
aws s3 rm s3://$(PRODUCTION_BUCKET)/ --recursive
redesign-clean:
aws s3 rm s3://$(REDESIGN_BUCKET)/ --recursive
autogen-clean:
rm data/autogen/*