~dricottone/blog

ref: 8e9cc8094ae5ac2ed4415d2c89c44ce82b60e991 blog/Makefile -rw-r--r-- 388 bytes
8e9cc809Dominic Ricottone Add landing page and static error pages 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
TARGET_USER=deploy
TARGET_HOST=$(TARGET_USER)@ubuntu2.intra.dominic-ricottone.com

.PHONY: dev
dev:
	hugo server -buildDrafts

.PHONY: build
build: clean
	hugo

.PHONY: sync
sync: build
	rsync --recursive --links --compress --delete \
		--chown=$(TARGET_USER):$(TARGET_USER) \
		public/ $(TARGET_HOST):/var/deploy/resources/webroot/

.PHONY: clean
clean:
	rm -rf public resources themes