diff options
author | Steven Barth <steven@midlink.org> | 2008-05-28 19:37:43 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-28 19:37:43 +0000 |
commit | 4e53d007bf30dddad1a2e1b44aa55d3ca8671ae4 (patch) | |
tree | 69e5a17bb861283f1333f3304b1e8dca16ef3955 /build/module.mk | |
parent | 38844ccb3107cd84488ae1cd67fec8e7de833eb4 (diff) |
* Reworked Makefiles
* Introduced following targets:
build: gccbuild luabuild
gccbuild: compile
luabuild: luasource||luacompile
* Removed requirement for lua-headers respecting lua-only builds
* Split compile part of OpenWRT Makefile
Diffstat (limited to 'build/module.mk')
-rw-r--r-- | build/module.mk | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/build/module.mk b/build/module.mk index 923caad70c..2288608386 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 |