Skip to content

Commit e3c368f

Browse files
committed
meson: rename target to update-man-rules
Same justification as for update-dbus-docs.
1 parent 4c890ad commit e3c368f

File tree

7 files changed

+14
-16
lines changed

7 files changed

+14
-16
lines changed

docs/CODE_QUALITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ available functionality:
4444
7. Use `meson compile -C build hwdb-update` to automatically download and import the
4545
PCI, USB and OUI databases into hwdb.
4646

47-
8. Use `meson compile -C build man/update-man-rules` to update the meson rules for
47+
8. Use `meson compile -C build update-man-rules` to update the meson rules for
4848
building man pages automatically from the docbook XML files included in
4949
`man/`.
5050

man/html.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ -z "$1" ]; then
66
exit 1
77
fi
88

9-
# make sure the rules have been regenerated (in case man/update-man-rules was just run)
9+
# make sure the rules have been regenerated (in case update-man-rules was just run)
1010
ninja -C "@BUILD_ROOT@" version.h
1111

1212
target="man/$1.html"

man/man.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ -z "$1" ]; then
66
exit 1
77
fi
88

9-
# make sure the rules have been regenerated (in case man/update-man-rules was just run)
9+
# make sure the rules have been regenerated (in case update-man-rules was just run)
1010
ninja -C "@BUILD_ROOT@" version.h
1111

1212
page="$(echo "$1" | sed 's/\./\\./')"

man/meson.build

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,6 @@ run_target(
198198

199199
############################################################
200200

201-
custom_target(
202-
'update-man-rules',
203-
output : 'update-man-rules',
204-
command : ['sh', '-c',
205-
'cd @0@ && '.format(meson.build_root()) +
206-
'python3 @0@/tools/update-man-rules.py $(find @0@ -wholename "*/man/*.xml") >t && '.format(project_source_root) +
207-
'mv t @0@/rules/meson.build'.format(meson.current_source_dir())],
208-
depend_files : custom_entities_ent)
209-
210-
############################################################
211-
212201
configure_file(
213202
input : 'man.in',
214203
output : 'man',

man/rules/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Do not edit. Generated by update-man-rules.py.
44
# Update with:
5-
# ninja -C build man/update-man-rules
5+
# ninja -C build update-man-rules
66
manpages = [
77
['binfmt.d', '5', [], 'ENABLE_BINFMT'],
88
['bootctl', '1', [], 'ENABLE_EFI'],

meson.build

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3624,6 +3624,15 @@ if dbus_docs.length() > 0
36243624
endif
36253625
endif
36263626

3627+
custom_target(
3628+
'update-man-rules',
3629+
output : 'update-man-rules',
3630+
command : ['sh', '-c',
3631+
'cd @0@ && '.format(meson.build_root()) +
3632+
'python3 @0@/tools/update-man-rules.py $(find @0@ -wholename "*/man/*.xml") >t && '.format(project_source_root) +
3633+
'mv t @0@/man/rules/meson.build'.format(meson.current_source_dir())],
3634+
depend_files : custom_entities_ent)
3635+
36273636
############################################################
36283637
watchdog_opt = service_watchdog == '' ? 'disabled' : service_watchdog
36293638

tools/update-man-rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def mjoin(files):
5151
5252
# Do not edit. Generated by update-man-rules.py.
5353
# Update with:
54-
# ninja -C build man/update-man-rules
54+
# ninja -C build update-man-rules
5555
manpages = ['''
5656

5757
MESON_FOOTER = '''\

0 commit comments

Comments
 (0)