X-Git-Url: http://git.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=Makefile;h=efccd79d09d67b69dfd8d659bd35483b4f88f51f;hp=3b46544a4cdf08699155ba969ca44187f451c3bf;hb=825f213e141bc66b46244820fc94121fd79f5f97;hpb=405d42a40c186134fcb605bd99fe9e6293164a3e diff --git a/Makefile b/Makefile index 3b46544a4c..efccd79d09 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ include build/config.mk MODULES = contrib/* applications/* libs/* modules/* themes/* i18n/* OS:=$(shell uname) +MODULES:=$(foreach item,$(wildcard $(MODULES)),$(if $(realpath $(wildcard $(item)/Makefile)),$(item))) + export OS .PHONY: all build gccbuild luabuild clean host gcchost luahost hostcopy hostclean @@ -61,6 +63,10 @@ ucidefaults: runhttpd: hostenv build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "lua build/lucid.lua" +runuhttpd: hostenv + cp $(realpath build)/luci.cgi $(realpath host)/www/cgi-bin/luci + build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath host)/usr/sbin/uhttpd -p 8080 -h $(realpath host)/www -f" + runlua: hostenv build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "lua -i build/setup.lua" @@ -73,9 +79,8 @@ hostclean: clean apidocs: hostenv build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "build/makedocs.sh host/luci/ docs" -uvldocs: hostenv - build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) \ - "build/uvldoc $(realpath host) $(UVL_SCHEMEDIR) uvldocs $(DOCS)" +nixiodocs: hostenv + build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "build/makedocs.sh libs/nixio/ nixiodocs" po: host for L in $${LANGUAGE:-$$(find i18n/ -path 'i18n/*/luasrc/i18n/*' -name 'default.*.lua' | \