[vlc-devel] [PATCH v3 3/9] contrib: lua: use UNPACK_DIR to extract to a different folder for luac
Steve Lhomme
robux4 at ycbcr.xyz
Fri Jul 10 10:25:15 CEST 2020
---
contrib/src/lua/rules.mak | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
index f9315e15941..5307b04ae89 100644
--- a/contrib/src/lua/rules.mak
+++ b/contrib/src/lua/rules.mak
@@ -99,13 +99,13 @@ ifdef HAVE_CROSS_COMPILE
LUACVARS+=CFLAGS="" CPPFLAGS="" LDFLAGS=""
endif
+# DO NOT use the same intermediate directory as the lua target
+luac: UNPACK_DIR=luac-$(LUA_VERSION)
luac: lua-$(LUA_VERSION).tar.gz .sum-luac
- # DO NOT use the same intermediate directory as the lua target
- rm -Rf -- $@-$(LUA_VERSION) $@
- mkdir -- $@-$(LUA_VERSION)
- tar -x -v -z -o -C $@-$(LUA_VERSION) --strip-components=1 -f $<
- (cd luac-$(LUA_VERSION) && patch -p1) < $(SRC)/lua/luac-32bits.patch
- mv luac-$(LUA_VERSION) luac
+ $(RM) -Rf $@ $(UNPACK_DIR) && mkdir -p $(UNPACK_DIR)
+ tar xvzfo $< -C $(UNPACK_DIR) --strip-components=1
+ $(APPLY) $(SRC)/lua/luac-32bits.patch
+ $(MOVE)
.luac: luac
cd $< && $(LUACVARS) $(MAKE) generic
--
2.26.2
More information about the vlc-devel
mailing list