-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 819 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (32 loc) · 819 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
DROPBOX := ${HOME}/Library/CloudStorage/Dropbox
SYNC_ROOT := ${DROPBOX}/slides/image
DECKS := $(wildcard content/*)
NAMES := $(notdir ${DECKS})
IMG_DSTS := $(addsuffix /image,${DECKS})
IMG_SRCS := $(addprefix ${SYNC_ROOT}/,${NAMES})
.PHONY: all clean development public watch server image
all: development
@:
development:
hugo --environment development
benchmark:
hugo --templateMetrics --templateMetricsHints
watch:
hugo --environment development --watch
server:
hugo server -p 8080
clean:
hugo --environment development --gc --cleanDestinationDir
public:
hugo --cleanDestinationDir
image: ${IMG_DSTS}
rsync -auvC ${SYNC_ROOT}-static/ static/
content/%/image: ${SYNC_ROOT}/%
rsync -auvC $^/ $@/
${SYNC_ROOT}/%: | content/%
mkdir $@
.PHONY: working
working:
@ls -l $@
$(MAKE) -C $@
$(MAKE) all