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:11:26 IST 2008


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



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