forked from OpenKore/openkore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (28 loc) · 989 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
.PHONY: all clean dist bindist test
# NOTE TO DEVELOPERS:
# We use the SCons build system ( https://www.scons.org/ ). This makefile is just a wrapper around it.
#
# The real build system definitions are in the file SConstruct. If you need
# to change anything, edit SConstruct (or SConscript in the subfolders).
#
# If you experience any build problems, read this web page:
# https://openkore.com/wiki/How_to_run_OpenKore
ifeq ($(OS),Windows_NT)
all:
@python src/scons-local-3.1.2/scons.py || echo -e "Compilation failed. Please read https://openkore.com/wiki/How_to_run_OpenKore for help."
doc:
cd src/doc/ && createdoc.pl
else
all:
@python src/scons-local-3.1.2/scons.py || echo -e "\e[1;31mCompilation failed. Please read https://openkore.com/wiki/How_to_run_OpenKore for help.\e[0m"
doc:
cd src/doc/ && ./createdoc.pl
endif
test:
cd src/test/ && perl unittests.pl
clean:
python src/scons-local-3.1.2/scons.py -c
dist:
bash makedist.sh
bindist:
bash makedist.sh --bin