docs: Ensure to rebuild manpages if samba.entities or samba.version changes
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 Aug 2021 21:13:15 +0000 (09:13 +1200)
committerJeremy Allison <jra@samba.org>
Thu, 9 Sep 2021 00:05:32 +0000 (00:05 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14791

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
buildtools/wafsamba/wafsamba.py

index dee007bf84e4aab18b2f7f0b4ad96257eb855185..865975cb2d199d596efcaf473d2761c55da08a86 100644 (file)
@@ -946,9 +946,13 @@ def SAMBAMANPAGES(bld, manpages, extra_source=None):
     bld.env.SAMBA_CATALOGS = 'file:///etc/xml/catalog file:///usr/local/share/xml/catalog file://' + bld.env.SAMBA_CATALOG
 
     for m in manpages.split():
-        source = m + '.xml'
+        source = [m + '.xml']
         if extra_source is not None:
             source = [source, extra_source]
+        # ${SRC[1]} and ${SRC[2]} are not referenced in the
+        # SAMBA_GENERATOR but trigger the dependency calculation so
+        # ensures that manpages are rebuilt when these change.
+        source += ['build/DTD/samba.entities', 'build/DTD/samba.build.version']
         bld.SAMBA_GENERATOR(m,
                             source=source,
                             target=m,