Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Doubt on variable $<

0 views
Skip to first unread message

visco

unread,
Dec 1, 2009, 8:08:17 AM12/1/09
to
Could anyone tell me what is the purpose of $<

I found it in a Makefile as follows
$(CXX) $(CXXFLAGS) -c $< -o $@

Also it would be nice if anyone could give a link explaining spl.
variables used in bash

Thanks and regards
visco

pk

unread,
Dec 1, 2009, 8:27:47 AM12/1/09
to
visco wrote:

> Could anyone tell me what is the purpose of $<
>
> I found it in a Makefile as follows
> $(CXX) $(CXXFLAGS) -c $< -o $@

That's not a bash variable. It's a Makefile variable.

http://www.gnu.org/software/make/manual/make.html#Automatic-Variables

> Also it would be nice if anyone could give a link explaining spl.
> variables used in bash

There's a "Special Parameters" section in the bash man page.

0 new messages