diff options
| author | Iñigo Martínez <inigomartinez@gmail.com> | 2019-08-28 10:40:46 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2019-10-01 09:49:33 +0200 |
| commit | bfbcf8f3febcba7379f887430c5da16e03e0cf47 (patch) | |
| tree | 2f528e98082de0bbbd9bbcafe2d7506d83de9d84 /docs | |
| parent | 50f146f6e3c932e261af16706608a6e0508bbd5f (diff) | |
| download | NetworkManager-bfbcf8f3febcba7379f887430c5da16e03e0cf47.tar.gz | |
meson: Use generators placeholders
Functions derived from generators as `configure_file`,
`custom_target` and `i18n.merge_file` can use placeholders like
`@BASENAME@` that removes the extension from the input filename
string.
The output string has been replaced by this placeholder that
allows in some cases the use of less variables.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/meson.build | 4 | ||||
| -rw-r--r-- | docs/libnm/meson.build | 4 | ||||
| -rw-r--r-- | docs/meson.build | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/docs/api/meson.build b/docs/api/meson.build index 62c5b8c926..3ea2edd5fe 100644 --- a/docs/api/meson.build +++ b/docs/api/meson.build @@ -15,8 +15,8 @@ if enable_introspection endif configure_file( - input: version_xml + '.in', - output: version_xml, + input: 'version.xml.in', + output: '@BASENAME@', configuration: version_conf, ) diff --git a/docs/libnm/meson.build b/docs/libnm/meson.build index b4a23729bb..7da4061a3d 100644 --- a/docs/libnm/meson.build +++ b/docs/libnm/meson.build @@ -27,8 +27,8 @@ private_headers = [ ] configure_file( - input: version_xml + '.in', - output: version_xml, + input: 'version.xml.in', + output: '@BASENAME@', configuration: version_conf, ) diff --git a/docs/meson.build b/docs/meson.build index cc814b77e7..f89592ab3d 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -1,8 +1,6 @@ version_conf = configuration_data() version_conf.set('VERSION', nm_version) -version_xml = 'version.xml' - subdir('libnm') subdir('api') |
