Tom <
zi...@yahoo.com> writes:
> I have a make commandline like so:
>
> make FVEND=altera FOO=1 BAR="FOO BAR"
>
> In the default target I would like to simply echo out the command line
> argumnets passed to make:
>
> @echo "Command line Arguments are: ???"
>
> but unfortunately I can't find the make equvilant or $ARGV[0] or
> $*. IS there any way to do this in make?
I have a feeling that you are trying to use make incorrectly.
Generally speaking, you don't pass "command line arguments" to
make(1); instead, you can alter make variables on the command line,
which is something different. What you have above is a set of
three variables that you set on the command line of the invocation
of make(1), if you want to print them, you just use their
names, which are ${FVEND}, ${FOO}, and ${BAR}, respectively.
Could you explain why you want some sort of ARGV? Perhaps an
explanation of your goal would help suggest a solution.
--
Aaron W. Hsu |
arc...@sacrideo.us |
http://www.sacrideo.us
Programming is just another word for the lost art of thinking.