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 \
16 make
-C
$$i compile ||
{ \
17 echo
"*** Compilation of $$i failed!"; \
23 for i in
$(MODULES
); do HOST
=$(realpath host
) make
-C
$$i luabuild
; done
27 .
/build
/i18n-po2lua.pl .
/po host
/lua-po
31 for i in
$(MODULES
); do make
-C
$$i clean; done
36 gcchost
: gccbuild hostcopy
38 luahost
: luabuild hostcopy
42 for i in
$(MODULES
); do cp
-pR
$$i/dist/* host
/ 2>/dev
/null || true
; done
43 for i in
$(MODULES
); do cp
-pR
$$i/hostfiles
/* host
/ 2>/dev
/null || true
; done
45 ln
-s .
$(LUCI_MODULEDIR
) host
/luci
46 rm -rf
/tmp
/luci-
* || true
48 hostenv
: host ucidefaults
51 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "$(realpath host)/bin/uci-defaults --exclude luci-freifunk-*"
54 libs
/sgi-webuci
/host
/buildconfig.sh
$(realpath host
) > host
/etc
/boa
/boa.conf
55 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "$(realpath host/usr/bin/boa) -c $(realpath host/etc/boa) -d"
58 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "$(realpath host/usr/bin/lucittpd) $(realpath host)/usr/lib/lucittpd/plugins"
61 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "$(realpath libs/httpd/host/runluci) $(realpath host) $(HTDOCS)"
64 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "lua -i build/setup.lua"
67 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) $$SHELL
73 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "build/makedocs.sh host/luci/ docs"
76 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) \
77 "build/uvldoc $(realpath host) $(UVL_SCHEMEDIR) uvldocs $(DOCS)"
80 for L in
$${LANGUAGE
:-$$(find i18n
/ -path
'i18n/*/luasrc/i18n/*' -name
'default.*.lua' | \
81 sed
-e
's!.*/default\.\(.*\)\.lua!\1!')}; do \
82 build
/i18n-lua2po.pl .
$(realpath host
)/po
$$L; \
86 # make run is deprecated #
89 # To run LuCI WebUI using LuCIttpd #
92 # To run LuCI WebUI using Boa/Webuci #
95 # To start a shell in the LuCI environment #
98 # To run Lua CLI in the LuCI environment #