From: Paul Durrant Date: Thu, 9 Jan 2020 11:15:05 +0000 (+0000) Subject: tools/Rules.mk: fix distclean X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~900 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=101398e1f81ca7a4f45ab54c4d0c4fee7b3a7bd8;p=xen.git tools/Rules.mk: fix distclean Running 'make distclean' under tools will currently result in: tools/Rules.mk:245: *** You have to run ./configure before building or installing the tools. Stop. This patch adds 'distclean', 'subdir-distclean%' and 'subdir-clean%' to no-configure-targets, which allows 'make distclean' to run to completion. Fixes: 00691c6c (tools: Allow to make *-dir-force-update without ./configure) Signed-off-by: Paul Durrant Acked-by: Ian Jackson Acked-by: Wei Liu --- diff --git a/tools/Rules.mk b/tools/Rules.mk index 31cf419ef4..52f47be3f8 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -239,7 +239,7 @@ subdir-all-% subdir-clean-% subdir-install-% subdir-uninstall-%: .phony subdir-distclean-%: .phony $(MAKE) -C $* distclean -no-configure-targets := clean subtree-force-update-all %-dir-force-update +no-configure-targets := distclean subdir-distclean% clean subdir-clean% subtree-force-update-all %-dir-force-update ifeq (,$(filter $(no-configure-targets),$(MAKECMDGOALS))) $(XEN_ROOT)/config/Tools.mk: $(error You have to run ./configure before building or installing the tools)