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 ba59f6b38e
commit a1ab6fed91
2 changed files with 3 additions and 0 deletions

View file

@ -63,6 +63,7 @@ Changes
test CRTs are available because MBEDTLS_PEM_PARSE_C is disabled.
Fixes #2254.
* 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.7.10 branch released 2019-03-19

View file

@ -276,6 +276,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