interpreters/lua: fix unpack on incremental build

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
Neo Xu 2022-12-21 15:59:21 +08:00 committed by Xiang Xiao
parent 167672c783
commit 6725d481b2

View File

@ -70,14 +70,12 @@ endif
$(LUA_TARBALL):
$(Q) echo "Downloading $(LUA_TARBALL)"
$(Q) curl -O -L $(LUA_URL)
$(LUA_UNPACK): $(LUA_TARBALL)
$(Q) echo "Unpacking $(LUA_TARBALL) to $(LUA_UNPACK)"
$(Q) tar -xvzf $(LUA_TARBALL)
# Download and unpack tarball if no git repo found
ifeq ($(wildcard $(LUA_UNPACK)/.git),)
context:: $(LUA_UNPACK)
context:: $(LUA_TARBALL)
endif
# Register core modules