diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2018-12-31 13:00:39 +0900 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@wdc.com> | 2019-01-03 13:27:17 +0900 |
commit | da86853a51e3cdddc12cff8c29116c2e87da525c (patch) | |
tree | 0c456faf3139b40f4d0800858745b871b5fe463e /Makefile | |
parent | 5797ae203555254c36fd21bc5aaa76a92ac4bd6c (diff) |
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-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |