* [PATCH] tools/build: fix distclean
@ 2012-04-13 18:14 Roger Pau Monne
0 siblings, 0 replies; only message in thread
From: Roger Pau Monne @ 2012-04-13 18:14 UTC (permalink / raw)
To: xen-devel; +Cc: George Dunlap, Roger Pau Monne
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>
---
tools/Rules.mk | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/Rules.mk b/tools/Rules.mk
index 202c0dd..a2a1a58 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
--
1.7.2.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-04-13 18:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-13 18:14 [PATCH] tools/build: fix distclean Roger Pau Monne
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.