[bug #67168] `ifeq` nested within the `else` of another `ifeq` causes "missing endif" error.

anonymous <[email protected]>
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?67168>

                 Summary: `ifeq` nested within the `else` of another `ifeq`
causes "missing endif" error.
                   Group: make
               Submitter: None
               Submitted: Thu 29 May 2025 07:33:50 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: SCM
        Operating System: None
           Fixed Release: None
           Triage Status: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 29 May 2025 07:33:50 PM UTC By: Anonymous
When attempting to emerge NSS on Gentoo Linux with a build of Make compiled
from the latest commit, I discovered that compilation was unable to begin due
to an error in Make. This issue doesn't occur with Make 4.4.1 installed.

I looked at the source code of the NSS, and managed to create a minimal
reproduction of the issue, which I have attached.

On 4.4.1, using this Makefile simply prints "This works" to the console, but
on the latest commit it produces the following error:

```
Makefile:11: *** missing 'endif'.  Stop.
```

This is the Gentoo issue tracker thread which lead to this issue being
created: https://bugs.gentoo.org/956806






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Name: Makefile  Size: 83B
<https://file.savannah.gnu.org/file/Makefile?file_id=57253>

    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-94dd2677b584d748ae0b054d8e3d88d725d2736f.tar.gz

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67168>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaDi2owAKCRCqLAuaBUf3
TqPdAP9ZjtCdpSHzYOLliFJBIvWe3qQvqX2WFv1v8VpZocUXogD+Lqm+GUrXWhQR
Y1hEVnyaP3m5C8juhKZtkeTqIuY0awU=
=FnYG
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.