programs: Make make clean clean all programs always

If `make TEST_CPP:=1` is run, and then `make clean` (as opposed to `make
TEST_CPP:=1 clean`), the cpp_dummy_build will be left behind after the
clean. Make `make clean more convenient to use by removing programs that
could be generated from any configuration, not just the active one.

Fixes #1862
This commit is contained in:
Jaeden Amero 2019-06-03 09:14:14 +01:00 committed by Jaeden Amero
parent 16529b21fa
commit 0c42e908e5
2 changed files with 3 additions and 0 deletions

View file

@ -64,6 +64,7 @@ Changes
* Change wording in the `mbedtls_ssl_conf_max_frag_len()`'s documentation to
improve clarity. Fixes #2258.
* Replace multiple uses of MD2 by SHA-256 in X.509 test suite. Fixes #821.
* Make `make clean` clean all programs always. Fixes #1862.
= mbed TLS 2.16.1 branch released 2019-03-19

View file

@ -296,6 +296,8 @@ x509/req_app$(EXEXT): x509/req_app.c $(DEP)
clean:
ifndef WINDOWS
rm -f $(APPS)
-rm -f ssl/ssl_pthread_server$(EXEXT)
-rm -f test/cpp_dummy_build$(EXEXT)
else
del /S /Q /F *.o *.exe
endif