~dricottone/blog

ref: f841a177f8f483ac3d2090c4b41e1a3d9c4f49c3 blog/Makefile -rw-r--r-- 438 bytes
f841a177Dominic Ricottone Initial commit 3 years 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
TARGET_IP=alpine1.local
TARGET_USER=deploy
TARGET_DIR=/var/public-blog
TARGET_HOST=$(TARGET_USER)@$(TARGET_IP)
DOCKER_URL=ssh://$(TARGET_HOST)

.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):$(TARGET_DIR)/html/

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