Added non-stripped debug target for LuCI
This commit is contained in:
parent
2213c82b47
commit
3b7e4eaaf8
3 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -38,6 +38,8 @@ compile: $(LUAPOSIX_DIR)/.patched
|
|||
cp $(LUAPOSIX_DIR)/posix.so dist$(LUA_LIBRARYDIR)
|
||||
|
||||
luasource:
|
||||
luastrip:
|
||||
luacompile:
|
||||
compile-all: compile
|
||||
|
||||
clean:
|
||||
|
|
|
@ -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:=
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue