From 36edae3257af6b97b0ec0b3eaa01f77d4f4e5c89 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Tue, 1 Nov 2016 14:29:20 +0000 Subject: [PATCH] target: zephyr: Cause pristine to remove entire build directory (#1418) For a normal zephyr application the pristine target simply runs "rm -rf outdir". However the JerryScript build overrides the output directory [O=$(OUTPUT)] so Zephyr's implementation pristine is not able to to a full aggressive clean up for all boards. For this reason it is better for the JerryScript build wrapper to have its own implementation of pristine. JerryScript-DCO-1.0-Signed-off-by: Daniel Thompson daniel.thompson@linaro.org --- targets/zephyr/Makefile.zephyr | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/targets/zephyr/Makefile.zephyr b/targets/zephyr/Makefile.zephyr index 5f935d0d8..32b741ef3 100644 --- a/targets/zephyr/Makefile.zephyr +++ b/targets/zephyr/Makefile.zephyr @@ -120,7 +120,7 @@ KCONFIG_TARGETS = \ oldconfig silentoldconfig defconfig savedefconfig \ allnoconfig allyesconfig alldefconfig randconfig \ listnewconfig olddefconfig -CLEAN_TARGETS = pristine mrproper +CLEAN_TARGETS = mrproper $(GENERIC_TARGETS): jerry $(CLEAN_TARGETS): clean @@ -166,3 +166,9 @@ ifdef V @echo "- CLEANING ZEPHYR ----------------------------------------------" endif make -f $(TARGET_ZEPHYR)/Makefile $(BUILD_CONFIG) clean + +pristine: clean +ifdef V + @echo "- CLEANING BUILD DIRECTORY -------------------------------------" +endif + rm -rf build/