Skip to content

Commit 6d1511b

Browse files
committed
Change order of prerequisites
so the name of the first prerequisite ($<) can be used as an argument to tar's -f option.
1 parent 9514d46 commit 6d1511b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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)) \
412413
$$(PYTHON_XCFRAMEWORK-macOS) \
413-
downloads/Python-$(PYTHON_VERSION).tgz
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
@@ -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)) \
763764
$$(OPENSSL_XCFRAMEWORK-$(os)) \
764-
downloads/Python-$(PYTHON_VERSION).tgz
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)