]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
docs-xml: only generate prometheus manpage when configured
authorGünther Deschner <gd@samba.org>
Tue, 22 Apr 2025 09:45:15 +0000 (11:45 +0200)
committerAnoop C S <anoopcs@samba.org>
Fri, 9 May 2025 11:03:37 +0000 (11:03 +0000)
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
docs-xml/wscript_build

index 90f5d57ffc4343f4ea0b10c62635236b6f0875a3..35b22762c9819d1a1b4ac8cd3eb97ffa7b7cff76 100644 (file)
@@ -48,7 +48,6 @@ manpages='''
          manpages/smbstatus.1
          manpages/smbtar.1
          manpages/smbtree.1
-         manpages/smb_prometheus_endpoint.8
          manpages/testparm.1
          manpages/traffic_learner.7
          manpages/traffic_replay.7
@@ -68,6 +67,8 @@ krb5_localauth_manpages = 'manpages/winbind_krb5_localauth.8'
 
 winexe_manpages = 'manpages/winexe.1'
 
+prometheus_manpages = 'manpages/smb_prometheus_endpoint.8'
+
 vfs_module_manpages = ['vfs_acl_tdb',
                        'vfs_acl_xattr',
                        'vfs_aio_fork',
@@ -201,6 +202,9 @@ if ('XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']):
     if conf.env.build_winexe == True:
         bld.SAMBAMANPAGES(winexe_manpages)
 
+    if bld.CONFIG_SET('WITH_PROMETHEUS_EXPORTER'):
+        bld.SAMBAMANPAGES(prometheus_manpages)
+
     if bld.CONFIG_SET('ENABLE_SELFTEST'):
         bld.SAMBAMANPAGES('manpages/vfstest.1')