Skip to content

Commit e69b3b3

Browse files
pks-tgitster
authored andcommitted
meson: clean up unnecessary variables
The `manpage_target` variable isn't used at all, and the `manpage_path` variable is only used in a single location. Remove the former variable and inline the latter. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dfc4617 commit e69b3b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Documentation/meson.build

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ foreach manpage, category : manpages
375375
output: fs.stem(manpage) + '.xml',
376376
)
377377

378-
manpage_path = fs.stem(manpage) + '.' + category.to_string()
379-
manpage_target = custom_target(
378+
custom_target(
380379
command: [
381380
xmlto,
382381
'-m', '@INPUT0@',
@@ -392,7 +391,7 @@ foreach manpage, category : manpages
392391
'manpage-normal.xsl',
393392
'manpage-bold-literal.xsl',
394393
],
395-
output: manpage_path,
394+
output: fs.stem(manpage) + '.' + category.to_string(),
396395
install: true,
397396
install_dir: get_option('mandir') / 'man' + category.to_string(),
398397
)

0 commit comments

Comments
 (0)