Re: Why make(1) doesn't support the internal macro $ ?

2012-04-23 Thread Jean-Sébastien Pédron
-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-
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Why make(1) doesn't support the internal macro $ ?

2012-04-21 Thread Yuri

When I run 'make' on the following makefile, $@ gets printed but $ doesn't.

Why?

Yuri


--- Makefile ---
file-out: file-in
@echo target= $@  src= $; touch $@

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Why make(1) doesn't support the internal macro $ ?

2012-04-21 Thread Garrett Cooper
On Apr 21, 2012, at 8:18 PM, Yuri wrote:

 When I run 'make' on the following makefile, $@ gets printed but $ doesn't.
 
 Why?
 
 Yuri
 
 
 --- Makefile ---
 file-out: file-in
@echo target= $@  src= $; touch $@

You want `$`... .IMPSRC is something else…
Cheers,
-Garrett___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org