1 include build/config.mk
3 MODULES = contrib/* applications/* libs/* modules/* themes/* i18n/*
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 luabuild; done
22 for i in $(MODULES); do make -C$$i clean; done
27 gcchost: gccbuild hostcopy
29 luahost: luabuild hostcopy
33 for i in $(MODULES); do cp -pR $$i/dist/* host/ 2>/dev/null || true; done
34 for i in $(MODULES); do cp -pR $$i/hostfiles/* host/ 2>/dev/null || true; done
36 ln -s .$(LUCI_MODULEDIR) host/luci
37 rm -rf /tmp/luci-* || true
39 hostenv: host ucidefaults
42 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath host)/bin/uci-defaults --exclude luci-freifunk-*"
45 libs/sgi-webuci/host/buildconfig.sh $(realpath host) > host/etc/boa/boa.conf
46 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath host/usr/bin/boa) -c $(realpath host/etc/boa) -d"
49 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath host/usr/bin/lucittpd) $(realpath host)/usr/lib/lucittpd/plugins"
52 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath libs/httpd/host/runluci) $(realpath host) $(HTDOCS)"
55 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) lua
58 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) $$SHELL
64 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "build/makedocs.sh host/luci/ docs"
67 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) \
68 "build/uvldoc $(realpath host) $(UVL_SCHEMEDIR) uvldocs $(DOCS)"
71 # make run is deprecated #
74 # To run LuCI WebUI using LuCIttpd #
77 # To run LuCI WebUI using Boa/Webuci #
80 # To start a shell in the LuCI environment #
83 # To run Lua CLI in the LuCI environment #