-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
51 lines (42 loc) · 1.63 KB
/
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
46
47
48
49
50
51
XARGS := xargs -0 $(shell test $$(uname) = Linux && echo -r)
GREP_T_FLAG := $(shell test $$(uname) = Linux && echo -T)
all:
@echo "\nThere is no default Makefile target right now. Try:\n"
@echo "make ace - check for and download the latest version of Ace editor."
@echo "make clean - reset the project and remove auto-generated assets."
@echo "make docs - run sphinx to create project documentation."
@echo "make python - check for and download the latest stand-alone Python."
@echo "make run - run the application locally."
@echo "make setup - setup and install a development environment for Mu."
@echo "make test - run the jasmine based unit tests."
@echo "make tidy - tidy project Python code with black."
ace: clean
python3 utils/get_ace.py
clean:
rm -rf docs/_build
rm -rf *.mp4
rm -rf *.log
rm -rf .git/avatar/*
find . \( -name '*.py[co]' -o -name dropin.cache \) -delete
find . \( -name '*.bak' -o -name dropin.cache \) -delete
find . \( -name '*.tgz' -o -name dropin.cache \) -delete
find . | grep -E "(__pycache__)" | xargs rm -rf
docs: clean
$(MAKE) -C docs html
@echo "\nDocumentation can be found here:"
@echo file://`pwd`/docs/_build/html/index.html
@echo "\n"
python: clean
python3 utils/get_python.py
run: clean
npm start --prefix ./mu
setup: clean
command -v node >/dev/null 2>&1 || { echo >&2 "I require node but it's not installed. Aborting."; exit 1; }
command -v npm >/dev/null 2>&1 || { echo >&2 "I require npm but it's not installed. Aborting."; exit 1; }
npm install --prefix ./mu
test: clean
jasmine ci --config tests/jasmine.yml
rm *.log
tidy: clean
@echo "\nTidying code with black..."
black -l 79 utils