libs/web: Prevent luci.http to prematurely parse the POST data
[project/luci.git] / Makefile
1 include build/config.mk
2
3 MODULES = applications/* libs/* modules/* themes/* i18n/* contrib/luaposix
4 LUA_TARGET = source
5
6 OS:=$(shell uname)
7 export OS
8
9 .PHONY: all build gccbuild luabuild clean host gcchost luahost hostcopy hostclean
10
11 all: build
12
13 build: luabuild gccbuild
14
15 gccbuild:
16 for i in $(MODULES); do make -C$$i compile; done
17
18 luabuild:
19 for i in $(MODULES); do make -C$$i lua$(LUA_TARGET); done
20
21 clean:
22 for i in $(MODULES); do make -C$$i clean; done
23
24
25 host: build hostcopy
26
27 gcchost: gccbuild hostcopy
28
29 luahost: luabuild hostcopy
30
31 hostcopy:
32 mkdir -p host
33 for i in $(MODULES); do cp -a $$i/dist/* host/ -R 2>/dev/null || true; done
34 rm -f host/luci
35 ln -s .$(LUCI_MODULEDIR) host/luci
36
37 runboa: host
38 export LUA_PATH="`pwd`/host$(LUCI_MODULEDIR);;"
39 export LUA_CPATH="`pwd`/host$(LUCI_LIBRARYDIR);;"
40 libs/sgi-webuci/host/buildconfig.sh `pwd`/host > host/etc/boa/boa.conf
41 ./host/usr/bin/boa -c ./host/etc/boa -d
42
43 runluci: luahost
44 export LUA_PATH="`pwd`/host$(LUCI_MODULEDIR);;"
45 export LUA_CPATH="`pwd`/host$(LUCI_LIBRARYDIR);;"
46 libs/httpd/host/runluci host$(HTDOCS)
47
48 hostclean: clean
49 rm -rf host
50
51 run:
52 # make run is deprecated #
53 # Please use: #
54 # #
55 # make runluci to use LuCI HTTPD #
56 # make runboa to use Boa / Webuci #