diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-04-13 22:48:39 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-04-13 22:55:03 -0400 |
commit | e5b0d225deaa64a1b9fa06d1ba8d35472cc7381d (patch) | |
tree | afcb1ed508767ee287a4c9f99a17925c06e8ab7b | |
parent | d1d009b4918fc4cac6b8c72c4a580e4302a627d3 (diff) | |
download | gtk+-e5b0d225deaa64a1b9fa06d1ba8d35472cc7381d.tar.gz |
meson: only build demo manpages when demos are enabled
Installing them even when manpages are enabled, but the demos are
disabled, produces manpages for unavailable programs...
-rw-r--r-- | docs/reference/gtk/meson.build | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/reference/gtk/meson.build b/docs/reference/gtk/meson.build index c1791edd53..7452b39f4c 100644 --- a/docs/reference/gtk/meson.build +++ b/docs/reference/gtk/meson.build @@ -70,16 +70,21 @@ if get_option('man-pages') and xsltproc.found() man_files = [ [ 'gtk4-broadwayd', '1', ], [ 'gtk4-builder-tool', '1', ], - [ 'gtk4-demo', '1', ], - [ 'gtk4-demo-application', '1', ], [ 'gtk4-encode-symbolic-svg', '1', ], - [ 'gtk4-icon-browser', '1', ], [ 'gtk4-launch', '1', ], [ 'gtk4-query-settings', '1', ], [ 'gtk4-update-icon-cache', '1', ], - [ 'gtk4-widget-factory', '1', ], ] + if get_option('demos') + man_files += [ + [ 'gtk4-demo', '1', ], + [ 'gtk4-demo-application', '1', ], + [ 'gtk4-widget-factory', '1', ], + [ 'gtk4-icon-browser', '1', ], + ] + endif + foreach man: man_files man_name = man.get(0) man_section = man.get(1, '1') |