Skip to content

Commit 53a1ec2

Browse files
authored
Merge pull request #158 from afh/afh/fixup-improve-downloads
Fixup improve download changes
2 parents 24ec0cd + 0936e8f commit 53a1ec2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ BZIP2_LIB-$(target)=$$(BZIP2_DIR-$(target))/_install/lib/libbz2.a
253253
$$(BZIP2_DIR-$(target))/Makefile: downloads/bzip2-$(BZIP2_VERSION).tar.gz
254254
@echo ">>> Unpack BZip2 sources for $(target)"
255255
mkdir -p $$(BZIP2_DIR-$(target))
256-
tar zxf $$^ --strip-components 1 -C $$(BZIP2_DIR-$(target))
256+
tar zxf $$< --strip-components 1 -C $$(BZIP2_DIR-$(target))
257257
# Touch the makefile to ensure that Make identifies it as up to date.
258258
touch $$(BZIP2_DIR-$(target))/Makefile
259259

@@ -272,10 +272,10 @@ $$(BZIP2_LIB-$(target)): $$(BZIP2_DIR-$(target))/Makefile
272272
XZ_DIR-$(target)=build/$(os)/xz-$(XZ_VERSION)-$(target)
273273
XZ_LIB-$(target)=$$(XZ_DIR-$(target))/_install/lib/liblzma.a
274274

275-
$$(XZ_DIR-$(target))/Makefile: downloads/xz-$(XZ_VERSION).tgz
275+
$$(XZ_DIR-$(target))/Makefile: downloads/xz-$(XZ_VERSION).tar.gz
276276
@echo ">>> Unpack XZ sources for $(target)"
277277
mkdir -p $$(XZ_DIR-$(target))
278-
tar zxf downloads/xz-$(XZ_VERSION).tgz --strip-components 1 -C $$(XZ_DIR-$(target))
278+
tar zxf $$< --strip-components 1 -C $$(XZ_DIR-$(target))
279279
# Configure the build
280280
cd $$(XZ_DIR-$(target)) && \
281281
./configure \
@@ -303,7 +303,7 @@ OPENSSL_CRYPTO_LIB-$(target)=$$(OPENSSL_DIR-$(target))/_install/lib/libcrypto.a
303303
$$(OPENSSL_DIR-$(target))/is_configured: downloads/openssl-$(OPENSSL_VERSION).tar.gz
304304
@echo ">>> Unpack and configure OpenSSL sources for $(target)"
305305
mkdir -p $$(OPENSSL_DIR-$(target))
306-
tar zxf $$^ --strip-components 1 -C $$(OPENSSL_DIR-$(target))
306+
tar zxf $$< --strip-components 1 -C $$(OPENSSL_DIR-$(target))
307307

308308
ifeq ($$(findstring simulator,$$(SDK-$(target))),)
309309
# Tweak ui_openssl.c
@@ -405,15 +405,15 @@ PYTHON_LIB-$(target)=$$(PYTHON_DIR-$(target))/_install/lib/libpython$(PYTHON_VER
405405
PYCONFIG_H-$(target)=build/$(os)/python/$$(SDK-$(target))/include/python$(PYTHON_VER)/pyconfig-$$(ARCH-$(target)).h
406406

407407
$$(PYTHON_DIR-$(target))/Makefile: \
408+
downloads/Python-$(PYTHON_VERSION).tgz \
408409
$$(BZIP2_XCFRAMEWORK-$(os)) \
409410
$$(XZ_XCFRAMEWORK-$(os)) \
410411
$$(OPENSSL_XCFRAMEWORK-$(os)) \
411412
$$(LIBFFI_XCFRAMEWORK-$(os)) \
412-
$$(PYTHON_XCFRAMEWORK-macOS) \
413-
downloads/Python-$(PYTHON_VERSION).tgz
413+
$$(PYTHON_XCFRAMEWORK-macOS)
414414
@echo ">>> Unpack and configure Python for $(target)"
415415
mkdir -p $$(PYTHON_DIR-$(target))
416-
tar zxf downloads/Python-$(PYTHON_VERSION).tgz --strip-components 1 -C $$(PYTHON_DIR-$(target))
416+
tar zxf $$< --strip-components 1 -C $$(PYTHON_DIR-$(target))
417417
# Apply target Python patches
418418
cd $$(PYTHON_DIR-$(target)) && patch -p1 < $(PROJECT_DIR)/patch/Python/Python.patch
419419
# Generate the embedded module configuration
@@ -706,10 +706,10 @@ ifneq ($(os),macOS)
706706
LIBFFI_XCFRAMEWORK-$(os)=build/$(os)/Support/libFFI.xcframework
707707
LIBFFI_DIR-$(os)=build/$(os)/libffi-$(LIBFFI_VERSION)
708708

709-
$$(LIBFFI_DIR-$(os))/darwin_common/include/ffi.h: downloads/libffi-$(LIBFFI_VERSION).tgz $$(PYTHON_XCFRAMEWORK-macOS)
709+
$$(LIBFFI_DIR-$(os))/darwin_common/include/ffi.h: downloads/libffi-$(LIBFFI_VERSION).tar.gz $$(PYTHON_XCFRAMEWORK-macOS)
710710
@echo ">>> Unpack and configure libFFI sources on $(os)"
711711
mkdir -p $$(LIBFFI_DIR-$(os))
712-
tar zxf downloads/libffi-$(LIBFFI_VERSION).tgz --strip-components 1 -C $$(LIBFFI_DIR-$(os))
712+
tar zxf $$< --strip-components 1 -C $$(LIBFFI_DIR-$(os))
713713
# Patch the build to add support for new platforms
714714
cd $$(LIBFFI_DIR-$(os)) && patch -p1 < $(PROJECT_DIR)/patch/libffi.patch
715715
# Configure the build
@@ -758,13 +758,13 @@ PYTHON_DIR-$(os)=$$(PYTHON_DIR-$$(firstword $$(TARGETS-$(os))))
758758
PYTHON_LIB-$(os)=$$(PYTHON_LIB-$$(firstword $$(TARGETS-$(os))))
759759

760760
$$(PYTHON_DIR-$(os))/Makefile: \
761+
downloads/Python-$(PYTHON_VERSION).tgz \
761762
$$(BZIP2_XCFRAMEWORK-$(os)) \
762763
$$(XZ_XCFRAMEWORK-$(os)) \
763-
$$(OPENSSL_XCFRAMEWORK-$(os)) \
764-
downloads/Python-$(PYTHON_VERSION).tgz
764+
$$(OPENSSL_XCFRAMEWORK-$(os))
765765
@echo ">>> Unpack and configure Python for $(os)"
766766
mkdir -p $$(PYTHON_DIR-$(os))
767-
tar zxf downloads/Python-$(PYTHON_VERSION).tgz --strip-components 1 -C $$(PYTHON_DIR-$(os))
767+
tar zxf $$< --strip-components 1 -C $$(PYTHON_DIR-$(os))
768768
# Apply target Python patches
769769
cd $$(PYTHON_DIR-$(os)) && patch -p1 < $(PROJECT_DIR)/patch/Python/Python.patch
770770
cat $(PROJECT_DIR)/patch/Python/Setup.embedded \

0 commit comments

Comments
 (0)