Added non-stripped debug target for LuCI

This commit is contained in:
Steven Barth 2008-07-19 10:27:23 +00:00
parent 2213c82b47
commit 3b7e4eaaf8
3 changed files with 5 additions and 1 deletions

View file

@ -20,6 +20,8 @@ luasource:
cp -a lua/* dist$(LUA_MODULEDIR) -R 2>/dev/null || true
cp -a htdocs/* dist$(HTDOCS) -R 2>/dev/null || true
for i in $$(find dist -name .svn); do rm $$i -rf; done
luastrip: luasource
for i in $$(find dist -type f -name '*.lua'); do perl -e 'undef $$/; open( F, "< $$ARGV[0]" ) || die $$!; $$src = <F>; close F; $$src =~ s/--\[\[.*?\]\](--)?//gs; $$src =~ s/^\s*--.*?\n//gm; open( F, "> $$ARGV[0]" ) || die $$!; print F $$src; close F' $$i; done
luacompile: luasource

View file

@ -38,6 +38,8 @@ compile: $(LUAPOSIX_DIR)/.patched
cp $(LUAPOSIX_DIR)/posix.so dist$(LUA_LIBRARYDIR)
luasource:
luastrip:
luacompile:
compile-all: compile
clean:

View file

@ -27,7 +27,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
PKG_BUILD_DEPENDS:=libnotimpl
LUA_TARGET:=source
LUA_TARGET:=strip
PKG_SELECTED_MODULES:=