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

Garrett Cooper yanegomi at gmail.com
Sun Apr 22 03:28:16 UTC 2012


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


More information about the freebsd-hackers mailing list