X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=build%2Fmodule.mk;h=2288608386167aaf03c0e699cb4cf6595b20cf58;hb=6071119f2e205dc2d58b27c990e12b306b755026;hp=923caad70c4ac86a7d10712b468d85c45fd989cd;hpb=4365fbe2a373b73af5578d0ed6eddfb2ba9901ef;p=project%2Fluci.git diff --git a/build/module.mk b/build/module.mk index 923caad70..228860838 100644 --- a/build/module.mk +++ b/build/module.mk @@ -1,20 +1,25 @@ -.PHONY: all compile compile-module source source-module clean clean-module +.PHONY: all build compile luacompile luasource clean luaclean -all: compile -compile: source-module -compile-all: compile-module -clean: clean-module -source: source-module +all: build -source-module: +build: luabuild gccbuild + +luabuild: lua$(LUA_TARGET) + +gccbuild: compile +compile: + +clean: luaclean + +luasource: mkdir -p dist$(LUCI_INSTALLDIR) cp root/* dist -R 2>/dev/null || true cp luasrc/* dist$(LUCI_INSTALLDIR) -R 2>/dev/null || true for i in $$(find dist -name .svn); do rm $$i -rf; done -compile-module: source-module +luacompile: luasource for i in $$(find dist -name *.lua -not -name debug.lua); do $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; done -clean-module: +luaclean: rm -rf dist