-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
36 lines (26 loc) · 800 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
LUA=luajit
all: lhttp_parser/lhttp_parser.so luv/luv.so
lua-pwauth/Makefile:
git submodule update --init --recursive lua-pwauth
lua-pwauth/lua-pam/pam.so: lua-pwauth/Makefile
$(MAKE) -C lua-pwauth
lhttp_parser/Makefile:
git submodule update --init --recursive lhttp_parser
lhttp_parser/lhttp_parser.so: lhttp_parser/Makefile
$(MAKE) -C lhttp_parser
luv/Makefile:
git submodule update --init --recursive luv
luv/luv.so: luv/Makefile
$(MAKE) -C luv
test:
@ $(LUA) tests/test-autoheaders.lua && \
$(LUA) tests/test-web.lua && \
echo "All Tests Passed..." && \
echo "Now go write more!"
clean:
$(MAKE) -C luv clean
$(MAKE) -C luv/libuv clean
$(MAKE) -C lhttp_parser clean
$(MAKE) -C lhttp_parser/http-parser clean
$(MAKE) -C lua-pwauth clean
$(MAKE) -C lua-pwauth/lua-pam clean