diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-31 09:24:08 +0100 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-01-06 01:46:51 +0100 |
commit | 172caf1993b7a6503a9f7faf589e2cf26eb1f219 (patch) | |
tree | 1bf9a94732270a001752735cf99fa038ebaedd21 /arch/arm/tools | |
parent | kbuild: clean up rule_dtc_dt_yaml (diff) | |
download | linux-172caf1993b7a6503a9f7faf589e2cf26eb1f219.tar.xz linux-172caf1993b7a6503a9f7faf589e2cf26eb1f219.zip |
kbuild: remove redundant target cleaning on failure
Since commit 9c2af1c7377a ("kbuild: add .DELETE_ON_ERROR special
target"), the target file is automatically deleted on failure.
The boilerplate code
... || { rm -f $@; false; }
is unneeded.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/tools')
-rw-r--r-- | arch/arm/tools/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/tools/Makefile b/arch/arm/tools/Makefile index ddb89a7db36f..27d8beb7c941 100644 --- a/arch/arm/tools/Makefile +++ b/arch/arm/tools/Makefile @@ -35,8 +35,7 @@ _dummy := $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') \ quiet_cmd_gen_mach = GEN $@ cmd_gen_mach = mkdir -p $(dir $@) && \ - $(AWK) -f $(filter-out $(PHONY),$^) > $@ || \ - { rm -f $@; /bin/false; } + $(AWK) -f $(filter-out $(PHONY),$^) > $@ $(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE $(call if_changed,gen_mach) |