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 <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
dfc4617a53
commit
e69b3b367f
@@ -375,8 +375,7 @@ foreach manpage, category : manpages
|
|||||||
output: fs.stem(manpage) + '.xml',
|
output: fs.stem(manpage) + '.xml',
|
||||||
)
|
)
|
||||||
|
|
||||||
manpage_path = fs.stem(manpage) + '.' + category.to_string()
|
custom_target(
|
||||||
manpage_target = custom_target(
|
|
||||||
command: [
|
command: [
|
||||||
xmlto,
|
xmlto,
|
||||||
'-m', '@INPUT0@',
|
'-m', '@INPUT0@',
|
||||||
@@ -392,7 +391,7 @@ foreach manpage, category : manpages
|
|||||||
'manpage-normal.xsl',
|
'manpage-normal.xsl',
|
||||||
'manpage-bold-literal.xsl',
|
'manpage-bold-literal.xsl',
|
||||||
],
|
],
|
||||||
output: manpage_path,
|
output: fs.stem(manpage) + '.' + category.to_string(),
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: get_option('mandir') / 'man' + category.to_string(),
|
install_dir: get_option('mandir') / 'man' + category.to_string(),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user