1 include build
/config.mk
3 MODULES
= applications
/* libs
/* modules
/* themes
/* i18n
/* contrib
/*
8 .PHONY
: all build gccbuild luabuild
clean host gcchost luahost hostcopy hostclean
12 build
: gccbuild luabuild
15 for i in
$(MODULES
); do make
-C
$$i compile
; done
18 for i in
$(MODULES
); do make
-C
$$i lua
$(LUA_TARGET
); done
21 for i in
$(MODULES
); do make
-C
$$i clean; done
26 gcchost
: gccbuild hostcopy
28 luahost
: luabuild hostcopy
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
35 ln
-s .
$(LUCI_MODULEDIR
) host
/luci
37 hostenv
: host ucidefaults
40 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "$(realpath host)/bin/uci-defaults --exclude luci-community-*"
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"
47 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "$(realpath libs/httpd/host/runluci) $(realpath host) $(HTDOCS)"
50 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "$(realpath libs/httpd/host/runluci) $(realpath host) $(HTDOCS)"
53 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) lua
56 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) $$SHELL
62 # make run is deprecated #
65 # To run LuCI WebUI using LuCI HTTPD #
68 # To run LuCI WebUI using Boa/Webuci #
71 # To start a shell in the LuCI environment #
74 # To run Lua CLI in the LuCI environment #