~hristoast/hristoast

ref: a31dcabaddae86aeb72cc49980b22881e10d9f7d hristoast/Makefile -rw-r--r-- 536 bytes
a31dcabaHristos N. Triantafillou Dehardcode that (sorta) 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
25
proj_dir := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
SOUPAULT := soupault

.DEFAULT_GOAL:= rebuild-staging

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

staging-site:
	$(SOUPAULT)

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