LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] ksh question

[ILUG] ksh question

Braun Brelin bbrelin at gmail.com
Thu May 8 14:33:14 IST 2008


Niall,

Thanks for reminding me.  I'd completely forgotten about that.  :-)

Braun


On 5/8/08, Niall Sheridan <nsheridan at gmail.com> wrote:
>
> That's all Make syntax, not shell syntax.
> $@ is a shorthand way of referring to the target, $< refers to the related
> file.
>
> Say given the following make snippet:
>
> monday: tuesday
>   echo $< $@
>
> 'make monday' will return 'tuesday monday'
>
>   - Niall
>
>
> On Thu, May 8, 2008 at 2:11 PM, Braun Brelin <bbrelin at gmail.com> wrote:
> > Hello all,
> >
> >  Someone sent me the following lines in a Makefile:
> >
> >  XML_RULE = @echo " xml-rule $< xml2hpp.xsl $@" && \
> >  $(JAVA_BIN) -cp $(XT_DIR)/xp.jar:$(XT_DIR)/xt.jar \
> >  com.jclark.xsl.sax.Driver \
> >  $< $(CMKCMK)/xml2hpp.xsl $@
> >
> >  They wanted to know what the "$<" and "$@" symbols mean.
> >
> >  The make program is running under ksh.
> >
> >  The $@ is almost certainly the builtin array $@ for command line
> arguments,
> >  but I'm having a hard time finding any reference for $<.  Is this
> command
> >  substitution
> >  a la $(<some_file) ?
> >
> >  I know that $< in Perl is the real uid of the
> >  program but that doesn't seem to make any sense in this context.
> >
> >  My guess is that it's some variant of input redirection.
> >
> >  Anyone else know what $< is in KSH?
> >
> >  Thanks,
> >
> >  Braun Brelin
>
> >  --
> >  Irish Linux Users' Group mailing list
> >  About this list : http://mail.linux.ie/mailman/listinfo/ilug
> >  Who we are : http://www.linux.ie/
> >  Where we are : http://www.linux.ie/map/
> >
>



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell