~hristoast/hristoast

ref: 08cb9c0ecc4d814c26056e28d840b4b8dc801bfa hristoast/Makefile -rw-r--r-- 526 bytes
08cb9c0eHristos N. Triantafillou Update soupault: 1.12.0 -> 1.13.0 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
proj_dir := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))

.DEFAULT_GOAL:= rebuild-staging

prod-site:
	soupault --verbose
	soupault --index-only
	$(proj_dir)/scripts/json2feed.py index.json > $(proj_dir)/build/feed.xml

staging-site:
	soupault --verbose

clean:
	rm -fr $(proj_dir)/build

deploy:
	rsync -aPv --delete build/ hristoast@hristoast:~/html/

deploy-staging:
	rsync -aPv --delete build/ hristoast@hristoast:~/staging/

rebuild: clean prod-site deploy

rebuild-staging: clean staging-site deploy-staging