Why make(1) doesn't support the internal macro $< ?
Jean-Sébastien Pédron
jean-sebastien.pedron at dumbbell.fr
Mon Apr 23 18:47:17 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 22.04.2012 05:27, Garrett Cooper wrote:
> On Apr 21, 2012, at 8:18 PM, Yuri wrote:
>
>> When I run 'make' on the following makefile, $@ gets printed but
>> $< doesn't.
>
> You want `$>`... .IMPSRC is something else…
If the OP is used to GNU make, there's a difference:
o $> in our make evaluates to all prerequisites
o $< in GNU make evaluates to the first prerequisite only
- --
Jean-Sébastien Pédron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk+Vo7MACgkQa+xGJsFYOlNmVQCeNjHKRKq9bBQr1e3MEuPe578k
9NMAnipvdpN26H9AgpOeClusa1bJ3tOB
=13wY
-----END PGP SIGNATURE-----
More information about the freebsd-hackers
mailing list