-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
32 lines (24 loc) · 855 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
.PHONY: check skynet 3rd
all: 3rd check
3rd: skynet
git submodule update --init
cd 3rd/lua-cjson && $(MAKE) install LUA_INCLUDE_DIR=../../skynet/3rd/lua DESTDIR=../.. LUA_CMODULE_DIR=./luaclib CC='$(CC) -std=gnu99'
cd 3rd/lua-rax && $(MAKE) LUA_INCLUDE_DIR=../../skynet/3rd/lua && cp rax.so ../../luaclib/rax.so && cp rax.lua ../../lualib/rax.lua
skynet:
git submodule update --init
cd skynet && $(MAKE) linux TLS_MODULE=ltls
clean:
rm -f luaclib/*.so
cleanall: clean
cd 3rd/lua-cjson && make clean
cd 3rd/lua-rax && make clean
cd skynet && make cleanall
check:
luacheck `find . -name '*.lua' '!' -path './skynet/*' '!' -path './3rd/*' | xargs` --ignore 212/self
WLUA_BIN := /usr/local/bin/wlua
WLUA_HOME := /usr/local/wlua
install: skynet 3rd
bash install.sh $(WLUA_BIN) $(WLUA_HOME)
uninstall:
rm -f $(WLUA_BIN)
rm -rf $(WLUA_HOME)