Same justification as for update-dbus-docs.
7. Use `meson compile -C build hwdb-update` to automatically download and import the
PCI, USB and OUI databases into hwdb.
-8. Use `meson compile -C build man/update-man-rules` to update the meson rules for
+8. Use `meson compile -C build update-man-rules` to update the meson rules for
building man pages automatically from the docbook XML files included in
`man/`.
exit 1
fi
-# make sure the rules have been regenerated (in case man/update-man-rules was just run)
+# make sure the rules have been regenerated (in case update-man-rules was just run)
ninja -C "@BUILD_ROOT@" version.h
target="man/$1.html"
exit 1
fi
-# make sure the rules have been regenerated (in case man/update-man-rules was just run)
+# make sure the rules have been regenerated (in case update-man-rules was just run)
ninja -C "@BUILD_ROOT@" version.h
page="$(echo "$1" | sed 's/\./\\./')"
############################################################
-custom_target(
- 'update-man-rules',
- output : 'update-man-rules',
- command : ['sh', '-c',
- 'cd @0@ && '.format(meson.build_root()) +
- 'python3 @0@/tools/update-man-rules.py $(find @0@ -wholename "*/man/*.xml") >t && '.format(project_source_root) +
- 'mv t @0@/rules/meson.build'.format(meson.current_source_dir())],
- depend_files : custom_entities_ent)
-
-############################################################
-
configure_file(
input : 'man.in',
output : 'man',
# Do not edit. Generated by update-man-rules.py.
# Update with:
-# ninja -C build man/update-man-rules
+# ninja -C build update-man-rules
manpages = [
['binfmt.d', '5', [], 'ENABLE_BINFMT'],
['bootctl', '1', [], 'ENABLE_EFI'],
endif
endif
+custom_target(
+ 'update-man-rules',
+ output : 'update-man-rules',
+ command : ['sh', '-c',
+ 'cd @0@ && '.format(meson.build_root()) +
+ 'python3 @0@/tools/update-man-rules.py $(find @0@ -wholename "*/man/*.xml") >t && '.format(project_source_root) +
+ 'mv t @0@/man/rules/meson.build'.format(meson.current_source_dir())],
+ depend_files : custom_entities_ent)
+
############################################################
watchdog_opt = service_watchdog == '' ? 'disabled' : service_watchdog
# Do not edit. Generated by update-man-rules.py.
# Update with:
-# ninja -C build man/update-man-rules
+# ninja -C build update-man-rules
manpages = ['''
MESON_FOOTER = '''\