<p></p>
<p dir="auto">What is the purpose of running cp there at all? meson doesn't need it in order to trigger <code>install: true</code> -- you can just use <code>install_data(..., rename: 'new-name')</code>. And you don't save the custom_target in a variable and add it as an order dependency on another target, so if it actually needs to be present in the build tree then you have no guarantee it will be there.</p>
<p dir="auto">Failing all that, ninja only runs the cp command when the input is newer than the output, you don't need cp to duplicate that check.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2761#issuecomment-988285954">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ453YGNPJBWSDJCNOLUPZ6LZANCNFSM4ZDZAFLA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ7AZ5G76KCEGE3FHALUPZ6LZA5CNFSM4ZDZAFLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHLUAYAQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2761#issuecomment-988285954",
"url": "https://github.com/geany/geany/pull/2761#issuecomment-988285954",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>