util/futility/Makefile: Update clean target

- Fix clean target to pass if output doesn't exist
- Make sure $(RM) is actually defined

Change-Id: Ibcdb0e329084f58b27c3f53213a237d02c922a51
Signed-off-by: Martin Roth <gaumless@gmail.com>
Reviewed-on: https://review.coreboot.org/18998
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Kocialkowski <contact@paulk.fr>
Tested-by: build bot (Jenkins)
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Martin Roth 2017-03-26 18:37:51 -06:00 committed by Martin Roth
parent 3c645391c0
commit b4f2b15f05
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
top ?= $(abspath ../..) top ?= $(abspath ../..)
objutil ?= $(top)/util objutil ?= $(top)/util
RM ?= rm
HOSTCC ?= $(CC) HOSTCC ?= $(CC)
VBOOT_SOURCE ?= $(top)/3rdparty/vboot VBOOT_SOURCE ?= $(top)/3rdparty/vboot
@ -9,8 +10,8 @@ all: $(objutil)/futility/futility
.PHONY: clean .PHONY: clean
clean: clean:
$(RM) $(objutil)/futility/futility $(RM) -f $(objutil)/futility/futility
$(RM) -r $(objutil)/futility/build $(RM) -rf $(objutil)/futility/build
distclean: clean distclean: clean