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 HOST
=$(realpath host
) make
-C
$$i luabuild
; done
22 .
/build
/i18n-po2lua.pl .
/po host
/lua-po
26 for i in
$(MODULES
); do make
-C
$$i clean; done
31 gcchost
: gccbuild hostcopy
33 luahost
: luabuild hostcopy
37 for i in
$(MODULES
); do cp
-pR
$$i/dist/* host
/ 2>/dev
/null || true
; done
38 for i in
$(MODULES
); do cp
-pR
$$i/hostfiles
/* host
/ 2>/dev
/null || true
; done
40 ln
-s .
$(LUCI_MODULEDIR
) host
/luci
41 rm -rf
/tmp
/luci-
* || true
43 hostenv
: host ucidefaults
46 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "$(realpath host)/bin/uci-defaults --exclude luci-freifunk-*"
49 libs
/sgi-webuci
/host
/buildconfig.sh
$(realpath host
) > host
/etc
/boa
/boa.conf
50 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "$(realpath host/usr/bin/boa) -c $(realpath host/etc/boa) -d"
53 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "$(realpath host/usr/bin/lucittpd) $(realpath host)/usr/lib/lucittpd/plugins"
58 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) lua
61 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) $$SHELL
67 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) "build/makedocs.sh host/luci/ docs"
70 build
/hostenv.sh
$(realpath host
) $(LUA_MODULEDIR
) $(LUA_LIBRARYDIR
) \
71 "build/uvldoc $(realpath host) $(UVL_SCHEMEDIR) uvldocs $(DOCS)"
74 for L in
$${LANGUAGE
:-$$(find i18n
/ -path
'i18n/*/luasrc/i18n/*' -name
'default.*.lua' | \
75 sed
-e
's!.*/default\.\(.*\)\.lua!\1!')}; do \
76 build
/i18n-lua2po.pl .
$(realpath host
)/po
$$L; \
80 # make run is deprecated #
83 # To run LuCI WebUI using LuCIttpd #
86 # To run LuCI WebUI using Boa/Webuci #
89 # To start a shell in the LuCI environment #
92 # To run Lua CLI in the LuCI environment #