~hristoast/hristoast

ref: 6c6b610011fd9b58d5c2baf47345899ba5ef360d hristoast/Makefile -rw-r--r-- 505 bytes
6c6b6100Hristos N. Triantafillou Proofreading edits 3 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))))
SOUPAULT := soupault

.DEFAULT_GOAL:= rebuild-staging

prod-site:
	$(SOUPAULT) --profile live

staging-site:
	$(SOUPAULT)

clean:
	rm -fr $(proj_dir)/build

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

deploy-staging:
	rsync -aq --delete build/ hristoast@hristoast:~/staging/
	@echo "STAGING DEPLOYED: https://staging.hristos.lol/"

rebuild: clean prod-site deploy

rebuild-staging: clean staging-site deploy-staging