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 make -C libs/lmo CC="cc" CFLAGS="" LDFLAGS="" host-install
16 for i in $(MODULES); do \
17 make -C$$i compile || { \
18 echo "*** Compilation of $$i failed!"; \
24 for i in $(MODULES); do HOST=$(realpath host) make -C$$i luabuild; done
28 ./build/i18n-po2lua.pl ./po host/lua-po
32 make -C libs/lmo host-clean
33 for i in $(MODULES); do make -C$$i clean; done
38 gcchost: gccbuild hostcopy
40 luahost: luabuild hostcopy
44 for i in $(MODULES); do cp -pR $$i/dist/* host/ 2>/dev/null || true; done
45 for i in $(MODULES); do cp -pR $$i/hostfiles/* host/ 2>/dev/null || true; done
47 ln -s .$(LUCI_MODULEDIR) host/luci
48 rm -rf /tmp/luci-* || true
50 hostenv: host ucidefaults
53 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath host)/bin/uci-defaults --exclude luci-freifunk-*"
56 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "lua build/lucid.lua"
59 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "lua -i build/setup.lua"
62 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) $$SHELL
68 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "build/makedocs.sh host/luci/ docs"
71 build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) \
72 "build/uvldoc $(realpath host) $(UVL_SCHEMEDIR) uvldocs $(DOCS)"
75 for L in $${LANGUAGE:-$$(find i18n/ -path 'i18n/*/luasrc/i18n/*' -name 'default.*.lua' | \
76 sed -e 's!.*/default\.\(.*\)\.lua!\1!')}; do \
77 build/i18n-lua2po.pl . $(realpath host)/po $$L; \
81 # make run is deprecated #
84 # To run LuCI WebUI using LuCIttpd #
87 # To run LuCI WebUI using Boa/Webuci #
90 # To start a shell in the LuCI environment #
93 # To run Lua CLI in the LuCI environment #