author | Jerome Forissier <jerome.forissier@linaro.org> | |
Mon, 28 Nov 2016 09:27:56 +0000 (10:27 +0100) | ||
committer | Jerome Forissier <jerome.forissier@linaro.org> | |
Mon, 28 Nov 2016 14:14:55 +0000 (15:14 +0100) | ||
commit | 6432f5194822d7da586d736e8733d7b78401bdec | |
tree | 12a4b80e4c9b0163f9d2448e609f4725871a9483 | tree | snapshot (tar.xz tar.gz zip) |
parent | 4dd96a6d8e1aba233a7e3fd59ef5f33611d0d9c6 | commit | diff |
Update clean rules
Do not use rm -rf, it's unsafe. Instead, remove only the files created
by the build and the output directories if they're empty. This allows
to specify the source directory as an output location:
$ make O=.
$ make O=. clean
Without this fix the clean step would remove the source files too.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Do not use rm -rf, it's unsafe. Instead, remove only the files created
by the build and the output directories if they're empty. This allows
to specify the source directory as an output location:
$ make O=.
$ make O=. clean
Without this fix the clean step would remove the source files too.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
flags.mk | diff | blob | history | |
libsqlfs/Makefile | diff | blob | history | |
libsqlite3/Makefile | diff | blob | history | |
libteec/Makefile | diff | blob | history | |
tee-supplicant/Makefile | diff | blob | history |