Hi is there a way to retrieve several parameters passed to the make command from within a makefile
I tried using @0 @1 @2 but this didn't seem to work.
Thanks
Hi is there a way to retrieve several parameters passed to the make command from within a makefile
I tried using @0 @1 @2 but this didn't seem to work.
Thanks
Ivan
dont know the nswer to that one
but i am just curious
why do you need multiple params?
jv
Makefiles can take named parameters on the command line.
Makefile:
-------------------------------------------------
Code:all: echo $(PARAMETER1) echo $(NAMED_PARAMETER) echo $(NAME)
From the shell:
[jabba@/users/dp/bryanc]
$ make NAME=bryan NAMED_PARAMETER=whatever PARAMETER=foo
echo
echo whatever
whatever
echo bryan
bryan