Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit 2066a75

Browse files
committed
Fix clean targets.
1 parent 2c72db1 commit 2066a75

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ all: $(foreach os,$(OS),all-$(os))
5454

5555
# Clean all builds
5656
clean:
57-
rm -rf build $(foreach os,$(OS),Python-$(PYTHON_VERSION)-$(os)-support.b$(BUILD_NUMBER).tar.gz)
57+
rm -rf build Python-$(PYTHON_VERSION)-*-support.b$(BUILD_NUMBER).tar.gz
5858

5959
# Full clean - includes all downloaded products
6060
distclean: clean
@@ -70,7 +70,9 @@ downloads: downloads/openssl-$(OPENSSL_VERSION).tgz downloads/Python-$(PYTHON_VE
7070

7171
# Clean the OpenSSL project
7272
clean-OpenSSL:
73-
rm -rf build/*/openssl-$(OPENSSL_VERSION)-* build/*/OpenSSL.framework
73+
rm -rf build/*/openssl-$(OPENSSL_VERSION)-* \
74+
build/*/libssl.a build/*/libcrypto.a \
75+
build/*/OpenSSL.framework
7476

7577
# Download original OpenSSL source code archive.
7678
downloads/openssl-$(OPENSSL_VERSION).tgz:
@@ -84,7 +86,9 @@ downloads/openssl-$(OPENSSL_VERSION).tgz:
8486

8587
# Clean the Python project
8688
clean-Python:
87-
rm -rf build/*/Python-$(PYTHON_VERSION)-* build/*/Python.framework
89+
rm -rf build/Python-$(PYTHON_VERSION)-host build/*/Python-$(PYTHON_VERSION)-* \
90+
build/*/libpython$(PYTHON_VER).a build/*/pyconfig-*.h \
91+
build/*/Python.framework
8892

8993
# Download original Python source code archive.
9094
downloads/Python-$(PYTHON_VERSION).tgz:

0 commit comments

Comments
 (0)