trunk: add gzip build target
This commit is contained in:
parent
9835296ba2
commit
baa3404ab3
2 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,9 @@ luastrip: luasource
|
||||||
luacompile: luasource
|
luacompile: luasource
|
||||||
for i in $$(find dist -name *.lua -not -name debug.lua); do $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; done
|
for i in $$(find dist -name *.lua -not -name debug.lua); do $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; done
|
||||||
|
|
||||||
|
luagzip: luacompile
|
||||||
|
for i in $$(find dist -name *.lua -not -name debug.lua); do gzip -9 $$i; done
|
||||||
|
|
||||||
luaclean:
|
luaclean:
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
|
|
||||||
|
|
|
@ -127,6 +127,9 @@ define Package/luci-core/config
|
||||||
config PACKAGE_luci-core_source
|
config PACKAGE_luci-core_source
|
||||||
bool "Full Source"
|
bool "Full Source"
|
||||||
|
|
||||||
|
config PACKAGE_luci-core_zipped
|
||||||
|
bool "Precompiled and compressed"
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -138,6 +141,10 @@ ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
|
||||||
LUA_TARGET:=strip
|
LUA_TARGET:=strip
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_PACKAGE_luci-core_zipped),)
|
||||||
|
LUA_TARGET:=gzip
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
### Libraries ###
|
### Libraries ###
|
||||||
define Package/luci-cbi
|
define Package/luci-cbi
|
||||||
|
|
Loading…
Reference in a new issue