agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: meson: Differentiate top-level and custom targets
Date: Fri, 24 Apr 2026 07:52:14 +0000
Message-ID: <E1wGBKf-002TYu-3C@gemulon.postgresql.org> (raw)

meson: Differentiate top-level and custom targets

We need to create top-level targets to run targets with the ninja
command like `ninja <target_name>`.

Some targets (man, html, ...) have the same target name on both
top-level and custom target.  This creates a confusion for the meson
build:

$ meson compile -C build html

```
ERROR: Can't invoke target `html`: ambiguous name. Add target type
and/or path:
- ./doc/src/sgml/html:custom
- ./doc/src/sgml/html:alias
```

Solve that problem by adding '-custom' suffix to these problematic
targets' custom target names.  Top-level targets can be called with
both meson and ninja now:

$ meson compile -C build html
$ ninja -C build html

Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
Suggested-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/5508e572-79ae-4b20-84d0-010a66d077f2%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3b28dad70e2fa57a973697d51242c284d475c7df

Modified Files
--------------
doc/src/sgml/meson.build | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)



Message-ID: <E1wGBKf-002TYu-3C@gemulon.postgresql.org>
Permalink:  ../E1wGBKf-002TYu-3C@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wGBKf-002TYu-3C@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: meson: Differentiate top-level and custom targets
  In-Reply-To: <E1wGBKf-002TYu-3C@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox