X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=Makefile;h=70a7e92a40df5c00db63ae4c9bf1f3ff4a234971;hp=21c88b2db4bea5ef3e2d162fa5ff78dc2c5f014d;hb=a36807b942a956687327d2069a7a8ff12e145473;hpb=71f54f529f198ca777c98eb13c58ed4a6db5fc1f diff --git a/Makefile b/Makefile index 21c88b2db..70a7e92a4 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 @@ -12,7 +14,7 @@ all: build build: gccbuild luabuild gccbuild: - make -C libs/lmo CC="cc" CFLAGS="" LDFLAGS="" SDK="$(shell test -f .running-sdk && echo 1)" host-install + make -C modules/base CC="cc" CFLAGS="" LDFLAGS="" SDK="$(shell test -f .running-sdk && echo 1)" host-install for i in $(MODULES); do \ make -C$$i SDK="$(shell test -f .running-sdk && echo 1)" compile || { \ echo "*** Compilation of $$i failed!"; \ @@ -31,7 +33,7 @@ i18nbuild: clean: rm -f .running-sdk rm -rf docs - make -C libs/lmo host-clean + make -C modules/base host-clean for i in $(MODULES); do make -C$$i clean; done @@ -58,9 +60,6 @@ sdk: ucidefaults: build/hostenv.sh $(realpath host) $(LUA_MODULEDIR) $(LUA_LIBRARYDIR) "$(realpath host)/bin/uci-defaults --exclude luci-freifunk-*" -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" @@ -90,11 +89,8 @@ run: # make run is deprecated # # Please use: # # # - # To run LuCI WebUI using LuCIttpd # - # make runhttpd # - # # - # To run LuCI WebUI using Boa/Webuci # - # make runboa # + # To run LuCI WebUI using uhttpd # + # make runuhttpd # # # # To start a shell in the LuCI environment # # make runshell #