1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

make: adjust for new vendor/lzma-sdk location

This commit is contained in:
Markus F.X.J. Oberhumer 2022-08-17 15:05:56 +02:00
parent 61e1366122
commit 3c47898cf4
3 changed files with 5 additions and 3 deletions

View File

@ -11,6 +11,7 @@ find . \
-type d -name '.hg' -prune -o \
-type d -name 'build*' -prune -o \
-type d -name 'tmp*' -prune -o \
-type d -name 'vendor' -prune -o \
-type f -iname '*.bat' -prune -o \
-type f -iname '*.exe' -prune -o \
-type f -iname '*.o' -prune -o \

View File

@ -10,6 +10,7 @@ set -e; set -o pipefail
git ls-files --full-name -z | perl -0 -n -e '
s,^,./,;
if (m,^\./src/lzma-sdk(\0|$),) { }
if (m,^\./vendor/,) { }
elsif (m,\.bat(\0|$),) { }
elsif (m,\.exe(\0|$),) { }
else { print; }

View File

@ -1,14 +1,14 @@
# UPX unconditionally uses its own version in src/lzma-sdk because
# UPX unconditionally uses its own version in vendor/lzma-sdk because
# that version works fine since 2006 and that is the only version
# that is actually sufficiently tested!!!
override UPX_LZMADIR := $(top_srcdir)/src/lzma-sdk
override UPX_LZMADIR := $(top_srcdir)/vendor/lzma-sdk
override UPX_LZMA_VERSION := 0x443
ifeq ($(wildcard $(UPX_LZMADIR)/C/7zip/.),)
ifneq ($(wildcard $(top_srcdir)/.git/.),)
$(error ERROR: missing git submodule; run 'git submodule update --init --recursive')
else
$(error ERROR: missing directory src/lzma-sdk/; visit https://github.com/upx/upx-lzma-sdk )
$(error ERROR: missing directory vendor/lzma-sdk/; visit https://github.com/upx/upx-vendor-lzma-sdk )
endif
endif