]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
hyperv: erase "generated files" sentinel during make maintainer-clean
authorLaine Stump <laine@laine.org>
Thu, 21 Jun 2018 07:42:32 +0000 (03:42 -0400)
committerLaine Stump <laine@laine.org>
Thu, 21 Jun 2018 08:04:13 +0000 (04:04 -0400)
Re-generating of generated source files in the hyperv directory
depends on src/.hyperv_wmi_generator.stamp not existing, or having a
timestamp older than src/hyperv/hyperv_wmi_generator.py. "make
maintainer-clean" erases the generated files, but not this sentinel
file, so the erased files aren't regenerated during the next
make. Once we add it to the list of MAINTAINERCLEANFILES, it gets
deleted at the same time as the generated files, so make is able to
understand they need regeneration.

Signed-off-by: Laine Stump <laine@laine.org>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/hyperv/Makefile.inc.am

index 3833589470656ae28aa894d0e6d8f828a0997393..a768272b7236a1cb03552960f8ad4d637284eb63 100644 (file)
@@ -43,7 +43,7 @@ $(HYPERV_GENERATED_STAMP): $(srcdir)/hyperv/hyperv_wmi_generator.input \
          $(srcdir)/hyperv/hyperv_wmi_generator.py \
          && touch $@
 
-MAINTAINERCLEANFILES += $(HYPERV_DRIVER_GENERATED)
+MAINTAINERCLEANFILES += $(HYPERV_DRIVER_GENERATED) $(HYPERV_GENERATED_STAMP)
 
 if WITH_HYPERV
 noinst_LTLIBRARIES += libvirt_driver_hyperv.la