Re: meson html:alias vs. html:custom

Álvaro Herrera <alvherre@kurilemu.de>

From: Álvaro Herrera <alvherre@kurilemu.de>
To: "Nazir Bilal Yavuz" <byavuz81@gmail.com>, "Peter Eisentraut" <peter@eisentraut.org>
Cc: "L. pgsql-hackers" <pgsql-hackers@postgresql.org>
Date: 2026-04-16T06:26:06Z
Lists: pgsql-hackers
On 2026-04-14, Nazir Bilal Yavuz wrote:

> On Tue, 14 Apr 2026 at 11:08, Peter Eisentraut <peter@eisentraut.org> wrote:
>>
>> If I remove the alias_target, then my original command works.  What is
>> the purpose of this alias?
>
> I think the main purpose was using these targets with the ninja
> command like: 'ninja ${target}'. ninja command doesn't work when the
> alias_target() is removed.

I think this is kinda silly. I would rather rename the meson target (to, say, do_html) and make the alias reference that, so that both "meson compile html" and "ninja html" would use the alias.

-- 
Álvaro Herrera



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. meson: Differentiate top-level and custom targets