-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathMakefile
40 lines (28 loc) · 921 Bytes
/
Makefile
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
git:
git submodule update --init --recursive
setup: git package.json
npm install
PROD_OPTIONS=-e production --config config.toml,config_prod.toml --minify
DEV_OPTIONS=-e development --config config.toml,config_dev.toml
PR_OPTIONS=-D $(PROD_OPTIONS) --config config.toml,config_pr.toml
SERVE_OPTIONS=--baseURL http://localhost
clean:
rm -rf public resources
build-prod: clean setup
hugo $(PROD_OPTIONS)
build-pr: clean setup
hugo $(PR_OPTIONS)
build-pr-no-clean: setup
hugo $(PR_OPTIONS)
serve-prod: setup
hugo server $(PROD_OPTIONS) $(SERVE_OPTIONS)
serve-prod-draft: setup
hugo server -D $(PROD_OPTIONS) $(SERVE_OPTIONS)
serve-prod-future: setup
hugo server -F $(PROD_OPTIONS) $(SERVE_OPTIONS)
serve-dev: setup
hugo server $(DEV_OPTIONS) $(SERVE_OPTIONS)
serve-dev-draft: setup
hugo server -D $(DEV_OPTIONS) $(SERVE_OPTIONS)
serve-dev-future: setup
hugo server -F $(DEV_OPTIONS) $(SERVE_OPTIONS)