-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
43 lines (33 loc) · 696 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
41
42
43
.PHONY: www
define banner
@echo
@echo "############################################################"
@echo "# $(1) "
@echo "############################################################"
endef
www:
$(call banner, "hugo")
cd www; hugo
hugo: www
serve:
$(call banner, "SERVE")
cd www; hugo --config=config-local.toml serve
e: edit
edit:
emacs www/content/en/docs/ &
view:
$(call banner, "VIEW")
gopen http://localhost:1313
emacs:
$(call banner, "EMACS")
emacs www/content/en
clean:
$(call banner, "CLEAN")
rm -rf *.zip
rm -rf *.egg-info
rm -rf *.eggs
rm -rf docs/build
rm -rf build
rm -rf dist
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
rm -rf .tox