> This is from a Makefile:
> -------------------------------------------------------------------------
> all::
[snip]
characters in the makefile.
I'm not sure where this is documented in the textinfo database.
From the Solaris manual page on make(1)
not print the command line before executing it.
This character is not passed to the shell.
- make ignores any nonzero error code returned by a
command line for which the first non-TAB character
is a `-'. This character is not passed to the
shell as part of the command line. make normally
terminates when a command returns nonzero status,
unless the -i or -k options, or the .IGNORE:
special-function target is in effect.
ignore any errors, and continue.
Quote:> What does "$$flag" mean?
$ indicates a Make variable. So if you have a shell script in a
makefile and use $X, make changes $X to the value it knows. WHat if
you want the shell to see"$X"?
From the Solaris page:
$$ A reference to the dollar-sign macro, the value of
which is the character `$'. Used to pass variable
expressions beginning with $ to the shell, to
refer to environment variables which are expanded
by the shell, or to delay processing of dynamic
macros within the dependency list of a target,
until that target is actually processed.
so if you want the shell to see $X, you have to use $$X in the Makefile.
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.