tools/Rules.mk: fix distclean
authorPaul Durrant <pdurrant@amazon.com>
Thu, 9 Jan 2020 11:15:05 +0000 (11:15 +0000)
committerWei Liu <wl@xen.org>
Tue, 14 Jan 2020 11:26:40 +0000 (11:26 +0000)
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 <pdurrant@amazon.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/Rules.mk

index 31cf419ef4f574060acdaf35592ad6b9646ce69c..52f47be3f8462dbb3949cbfedd9016cf7d036df0 100644 (file)
@@ -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)