libs/core, libs/uci, libs/web: Fixed several inline documentation typos
[project/luci.git] / Makefile
1 include build/config.mk
2
3 MODULES = applications/* libs/* modules/* themes/* i18n/* contrib/*
4
5 OS:=$(shell uname)
6 export OS
7
8 .PHONY: all build gccbuild luabuild clean host gcchost luahost hostcopy hostclean
9
10 all: build
11
12 build: gccbuild luabuild
13
14 gccbuild:
15         for i in $(MODULES); do make -C$$i compile; done        
16
17 luabuild:
18         for i in $(MODULES); do make -C$$i lua$(LUA_TARGET); done
19
20 clean:
21         for i in $(MODULES); do make -C$$i clean; done
22
23
24 host: build hostcopy
25
26 gcchost: gccbuild hostcopy
27
28 luahost: luabuild hostcopy
29
30 hostcopy: 
31         mkdir -p host
32         for i in $(MODULES); do cp -a $$i/dist/* host/ -R 2>/dev/null || true; done
33         for i in $(MODULES); do cp -a $$i/hostfiles/* host/ -R 2>/dev/null || true; done
34         rm -f host/luci
35         ln -s .$(LUCI_MODULEDIR) host/luci
36
37 hostenv: host ucidefaults
38
39 ucidefaults:
40         build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath host)/bin/uci-defaults --exclude luci-community-*"
41
42 runboa: hostenv
43         libs/sgi-webuci/host/buildconfig.sh $(realpath host) > host/etc/boa/boa.conf
44         build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath host/usr/bin/boa) -c $(realpath host/etc/boa) -d"
45
46 runhttpd: hostenv
47         build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath libs/httpd/host/runluci) $(realpath host) $(HTDOCS)"
48
49 runluci: luahost
50         build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath libs/httpd/host/runluci) $(realpath host) $(HTDOCS)"
51
52 runlua: hostenv
53         build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) lua
54
55 runshell: hostenv
56         build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) $$SHELL
57
58 hostclean: clean
59         rm -rf host
60
61 run:
62         #       make run is deprecated                          #
63         #       Please use:                                     #
64         #                                                       #
65         #       To run LuCI WebUI using LuCI HTTPD              #
66         #       make runhttpd                                   #
67         #                                                       #
68         #       To run LuCI WebUI using Boa/Webuci              #
69         #       make runboa                                     #
70         #                                                       #
71         #       To start a shell in the LuCI environment        #
72         #       make runshell                                   #
73         #                                                       #
74         #       To run Lua CLI in the LuCI environment          #
75         #       make runlua                                     #