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
Printable View
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
dont know the nswer to that one
but i am just curious
why do you need multiple params?
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
Very Cool!