include: correct re-building conditions around hypercall-defs.h
authorJan Beulich <jbeulich@suse.com>
Mon, 25 Jul 2022 13:46:21 +0000 (15:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 25 Jul 2022 13:46:21 +0000 (15:46 +0200)
For a .cmd file to be picked up, the respective target needs to be
listed in $(targets). This wasn't the case for hypercall-defs.i, leading
to permanent re-building even on an entirely unchanged tree (because of
the command apparently having changed).

In exchange the target doesn't need naming in $(clean-files) anymore.

Fixes: eca1f00d0227 ("xen: generate hypercall interface related code")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
xen/include/Makefile

index 65d61fc7f465cd453f106c7b1d9192a1e11b94bb..65be310eca2befda6a89b5c65f7943183bff1e40 100644 (file)
@@ -114,7 +114,7 @@ all: $(obj)/xen/hypercall-defs.h
 $(obj)/xen/hypercall-defs.h: $(obj)/hypercall-defs.i $(srctree)/scripts/gen_hypercall.awk FORCE
        $(call if_changed,genhyp)
 
-targets += xen/hypercall-defs.h
+targets += hypercall-defs.i xen/hypercall-defs.h
 
 ifeq ($(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH))
 
@@ -225,4 +225,3 @@ all: lib-x86-all
 endif
 
 clean-files := compat config generated xen/lib/x86/cpuid-autogen.h
-clean-files += hypercall-defs.i