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
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!