summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-01-16 17:24:23 -0500
committerMike Frysinger <vapier@gentoo.org>2012-01-16 17:24:35 -0500
commitc3e65564910151c3dc5e827945e3138287a3b901 (patch)
tree5fb97522fc46f753a36b83bb81c7bb666f17818b /Rules.mak
parentfaf51f000e70f067b51f5f2957ddb12764ffd98f (diff)
buildsys: handle more clean targets
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index a84584f40..84d3fecbc 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -176,7 +176,7 @@ check_ld=$(shell \
# Use variable indirection here so that we can have variable
# names with fun chars in them like equal signs
define check-tool-var
-ifeq ($(filter clean CLEAN_%,$(MAKECMDGOALS)),)
+ifeq ($(filter $(clean_targets) CLEAN_%,$(MAKECMDGOALS)),)
_v = $(2)_$(3)
ifndef $$(_v)
$$(_v) := $$(call $(1),$(subst %, ,$(3)))
@@ -661,7 +661,7 @@ ifeq ($(LDSO_GNU_HASH_SUPPORT),y)
# Be sure that binutils support it
$(eval $(call check-ld-var,--hash-style=gnu))
ifeq ($(LDFLAG_--hash-style=gnu),)
-ifneq ($(filter-out $(clean_targets) install_headers headers-y,$(MAKECMDGOALS)),)
+ifneq ($(filter-out $(clean_targets) CLEAN_% install_headers headers-y,$(MAKECMDGOALS)),)
$(error Your binutils do not support --hash-style option, while you want to use it)
endif
else