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"
54 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) lua
57 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) $$SHELL
63 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "build/makedocs.sh host/luci/ docs"
66 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) \
67 "build/uvldoc $(realpath host) $(UVL_SCHEMEDIR) uvldocs $(DOCS)"
70 for L in $${LANGUAGE:-$$(find i18n/ -path 'i18n/*/luasrc/i18n/*' -name 'default.*.lua' | \
71 sed -e 's!.*/default\.\(.*\)\.lua!\1!')}; do \
72 build/i18n-lua2po.pl . $(realpath host)/po $$L; \
76 # make run is deprecated #
79 # To run LuCI WebUI using LuCIttpd #
82 # To run LuCI WebUI using Boa/Webuci #
85 # To start a shell in the LuCI environment #
88 # To run Lua CLI in the LuCI environment #