Re: .for .. .endfor (in kcgi - Makefile)
Paul Smith <[email protected]> Wed, 08 Oct 2025 12:25:49 -0400
| Newsgroups | gmane.comp.gnu.make.general |
|---|---|
| Organization | GNU's Not UNIX! |
| Message-ID | <[email protected]> |
On Wed, 2025-10-08 at 18:09 +0200, andreas graeper via Users list for
the GNU implementation of make wrote:
> i tried to find documentation, but no success
The documentation for GNU Make can be found here (as well as many other
places):
https://www.gnu.org/software/make/manual/html_node/
>=20
> Makefile:157: *** missing separator.=C2=A0 Stop.
>=20
> d =3D
> .for e in ${s1} ${s2}
> =C2=A0 d +=3D ${e}.htm
> .endfor
This syntax is illegal in GNU Make. It looks like you're following the
documentation for the BSD make (FreeBSD / OpenBSD). These versions are
not compatible at this level. They both adhere to the POSIX definition
of make, but they both also add many extensions which are not portable
across different versions.