forked from samuelyao314/terminator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (30 loc) · 742 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
.PHONY:all skynet clean dev build test check
all: skynet build
PLAT="linux"
ifeq ($(shell uname), Darwin)
PLAT="macosx"
endif
SKYNET_MAKEFILE=skynet/Makefile
$(SKYNET_MAKEFILE):
git submodule update --init
skynet: | $(SKYNET_MAKEFILE)
cd skynet && $(MAKE) $(PLAT) MYCFLAGS="-fno-omit-frame-pointer "
build:
-mkdir $@
cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make
clean:
-rm -rf deploy
-rm -rf build
-rm -rf lualib/3rd/*
-rm -f luaclib/*so
cd skynet && make clean
INSTALL_DIR = deploy/
INSTALL_SKYNET = ${INSTALL_DIR}/skynet
dev:
python tools/deploy.py . deploy
test:
python tools/unittest.py skynet/3rd/lua/lua lualib
check:
luacheck --config .luacheckrc .
update:
git submodule foreach git submodule update