Re: .for .. .endfor (in kcgi - Makefile)
Paul Smith <[email protected]> Wed, 08 Oct 2025 12:35:23 -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:
> s1 =3D x \
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 y \
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 z
>=20
> s2 =3D a
>=20
> d =3D
> .for e in ${s1} ${s2}
> =C2=A0 d +=3D ${e}.htm
> .endfor
FYI: in GNU Make the above can be written as:
d =3D $(addsuffix .htm,${s1} ${s2})