tools: Allow to make *-dir-force-update without ./configure
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 19 Dec 2019 14:42:16 +0000 (14:42 +0000)
committerWei Liu <wl@xen.org>
Wed, 8 Jan 2020 16:09:23 +0000 (16:09 +0000)
This also allows to run `make src-tarball` without first having to run
`./configure`.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/Rules.mk

index cf8935d6a3eab7da3cf9a3c36e1233b46cddfa4a..31cf419ef4f574060acdaf35592ad6b9646ce69c 100644 (file)
@@ -239,7 +239,8 @@ subdir-all-% subdir-clean-% subdir-install-% subdir-uninstall-%: .phony
 subdir-distclean-%: .phony
        $(MAKE) -C $* distclean
 
-ifeq (,$(findstring clean,$(MAKECMDGOALS)))
+no-configure-targets := 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)
 endif