meson: add man and html targets (#39207)

This commit is contained in:
Yu Watanabe
2025-10-04 22:41:58 +02:00
committed by GitHub
6 changed files with 5 additions and 9 deletions

View File

@@ -217,7 +217,6 @@ configure_file(
############################################################
update_dbus_docs = custom_target(
'update-dbus-docs-impl',
output : 'update-dbus-docs',
command : [update_dbus_docs_py, '--build-dir', meson.project_build_root(), '@INPUT@'],
input : dbus_docs,
@@ -237,7 +236,6 @@ if conf.get('BUILD_MODE_DEVELOPER') == 1
endif
update_man_rules = custom_target(
'update-man-rules-impl',
output : 'update-man-rules',
command : [update_man_rules_py,
'@0@/man/*.xml'.format(meson.project_source_root()),

1
man/rules/.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
meson.build generated

View File

@@ -1,5 +1,3 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
# Do not edit. Generated by update-man-rules.py.
# Update with:
# ninja -C build update-man-rules

View File

@@ -2743,11 +2743,11 @@ foreach executable : ['systemd-journal-remote', 'systemd-sbsign', 'systemd-keyut
endforeach
if mkosi.found()
custom_target('mkosi',
custom_target(
build_always_stale : true,
build_by_default: false,
console : true,
output : '.',
output : 'mkosi',
command : [
mkosi,
'--directory', meson.current_source_dir(),
@@ -2940,6 +2940,8 @@ run_target(
libsystemd.full_path(),
libudev.full_path()])
alias_target('man', man)
alias_target('html', html)
alias_target('update-dbus-docs', update_dbus_docs)
alias_target('update-man-rules', update_man_rules)

View File

@@ -49,8 +49,6 @@ def mjoin(files):
return ' \\\n\t'.join(sorted(files) or '#')
MESON_HEADER = '''\
# SPDX-License-Identifier: LGPL-2.1-or-later
# Do not edit. Generated by update-man-rules.py.
# Update with:
# ninja -C build update-man-rules

View File

@@ -82,7 +82,6 @@ foreach unit : units
if needs_jinja
t = custom_target(
name,
input : source,
output : name,
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],