-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
45 lines (31 loc) · 866 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
44
45
.PHONY: all docs firmware clean test clean build
all: docs
docs:
$(MAKE) -C docs/ html
docs-clean:
rm -R docs/_build
firmware:
cd embedded/firmware; platformio run -t upload
sa-debug:
smartanthill --logger.level=DEBUG
cc-debug:
twistd -n --pidfile=twistd-cc.pid smartanthill-cc
dashboard-build:
cd smartanthill/dashboard/site; grunt build
dashboard-debug:
cd smartanthill/dashboard/site; grunt serve
dashboard-clean:
cd smartanthill/dashboard/site; grunt clean
dashboard-beautify-js:
cd smartanthill/dashboard/site/app; find . -name '*.js' -exec js-beautify -nr -s 2 {} +
test:
tox
cd smartanthill/dashboard/site; grunt test
py-clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
rm twisted/plugins/dropin.cache
build:
make dashboard-build
python setup.py sdist
clean: docs-clean py-clean dashboard-clean