aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Rules.mk
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@citrix.com>2012-04-24 18:20:07 +0100
committerRoger Pau Monne <roger.pau@citrix.com>2012-04-24 18:20:07 +0100
commit42488368c42bbe79ec103ea93de927e947649e6e (patch)
treefe9c7a1c3e452b11b9dfa8d9515042cf34336ae8 /tools/Rules.mk
parent17c220657a9e3bed049f448c924455c1103e09a1 (diff)
downloadxen-42488368c42bbe79ec103ea93de927e947649e6e.tar.gz
xen-42488368c42bbe79ec103ea93de927e947649e6e.tar.bz2
xen-42488368c42bbe79ec103ea93de927e947649e6e.zip
tools/build: fix distclean
distclean removed config/Tools.mk which was needed by tools/Rules.mk, thus preventing distclean from running properly in the tools directory. This patch only enforces config/Tools.mk presence when not performing a clean/distclean target Signed-off-by: Roger Pau Monne <roger.pau@citrix.com> Cc: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/Rules.mk')
-rw-r--r--tools/Rules.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/Rules.mk b/tools/Rules.mk
index 202c0dd7db..a2a1a5846a 100644
--- a/tools/Rules.mk
+++ b/tools/Rules.mk
@@ -4,7 +4,7 @@
all:
include $(XEN_ROOT)/Config.mk
-include $(XEN_ROOT)/config/Tools.mk
+-include $(XEN_ROOT)/config/Tools.mk
export _INSTALL := $(INSTALL)
INSTALL = $(XEN_ROOT)/tools/cross-install
@@ -109,6 +109,7 @@ subdir-all-% subdir-clean-% subdir-install-%: .phony
subdir-distclean-%: .phony
$(MAKE) -C $* clean
+ifeq (,$(findstring clean,$(MAKECMDGOALS)))
$(XEN_ROOT)/config/Tools.mk:
- @echo "You have to run ./configure before building or installing the tools"
- @exit 1
+ $(error You have to run ./configure before building or installing the tools)
+endif