1 include build
/config.mk
3 MODULES
= applications
/* libs
/* modules
/* themes
/* i18n
/* contrib
/luaposix
9 .PHONY
: all build gccbuild luabuild
clean host gcchost luahost hostcopy hostclean
13 build
: luabuild gccbuild
16 for i in
$(MODULES
); do make
-C
$$i compile
; done
19 for i in
$(MODULES
); do make
-C
$$i lua
$(LUA_TARGET
); 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
-a
$$i/dist/* host
/ -R
2>/dev
/null || true
; done
35 ln
-s .
$(LUCI_MODULEDIR
) host
/luci
38 export LUA_PATH
="`pwd`/host$(LUCI_MODULEDIR);;"
39 export LUA_CPATH
="`pwd`/host$(LUCI_LIBRARYDIR);;"
40 libs
/sgi-webuci
/host
/buildconfig.sh
`pwd`/host
> host
/etc
/boa
/boa.conf
41 .
/host
/usr
/bin
/boa
-c .
/host
/etc
/boa
-d
44 export LUA_PATH
="`pwd`/host$(LUCI_MODULEDIR);;"
45 export LUA_CPATH
="`pwd`/host$(LUCI_LIBRARYDIR);;"
46 libs
/httpd
/host
/runluci host
$(HTDOCS
)
52 # make run is deprecated #
55 # make runluci to use LuCI HTTPD #
56 # make runboa to use Boa / Webuci #