summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2018-12-31 07:00:39 +0300
committerDamien Le Moal <damien.lemoal@wdc.com>2019-01-03 07:27:17 +0300
commitda86853a51e3cdddc12cff8c29116c2e87da525c (patch)
tree0c456faf3139b40f4d0800858745b871b5fe463e /Makefile
parent5797ae203555254c36fd21bc5aaa76a92ac4bd6c (diff)
downloadopensbi-da86853a51e3cdddc12cff8c29116c2e87da525c.tar.xz
Makefile: Fix messages
Instead of printing the generic "<build_directory>" and "<install_directory>" strings, print the actual paths for the build and install directories during "make clean" and "make distclean". Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 3464565..0a8accf 100644
--- a/Makefile
+++ b/Makefile
@@ -285,26 +285,26 @@ install_firmwares: $(build_dir)/$(platform_subdir)/lib/libplatsbi.a $(build_dir)
.PHONY: clean
clean:
$(V)mkdir -p $(build_dir)
- $(if $(V), @echo " RM <build_directory>/*.o")
+ $(if $(V), @echo " RM $(build_dir)/*.o")
$(V)find $(build_dir) -type f -name "*.o" -exec rm -rf {} +
- $(if $(V), @echo " RM <build_directory>/*.a")
+ $(if $(V), @echo " RM $(build_dir)/*.a")
$(V)find $(build_dir) -type f -name "*.a" -exec rm -rf {} +
- $(if $(V), @echo " RM <build_directory>/*.elf")
+ $(if $(V), @echo " RM $(build_dir)/*.elf")
$(V)find $(build_dir) -type f -name "*.elf" -exec rm -rf {} +
- $(if $(V), @echo " RM <build_directory>/*.bin")
+ $(if $(V), @echo " RM $(build_dir)/*.bin")
$(V)find $(build_dir) -type f -name "*.bin" -exec rm -rf {} +
# Rule for "make distclean"
.PHONY: distclean
distclean: clean
$(V)mkdir -p $(build_dir)
- $(if $(V), @echo " RM <build_directory>/*.dep")
+ $(if $(V), @echo " RM $(build_dir)/*.dep")
$(V)find $(build_dir) -type f -name "*.dep" -exec rm -rf {} +
ifeq ($(build_dir),$(CURDIR)/build)
- $(if $(V), @echo " RM <build_directory>")
+ $(if $(V), @echo " RM $(build_dir)")
$(V)rm -rf $(build_dir)
endif
ifeq ($(install_dir),$(CURDIR)/install)
- $(if $(V), @echo " RM <install_directory>")
+ $(if $(V), @echo " RM $(install_dir)")
$(V)rm -rf $(install_dir)
endif