Passing multiple arguments to makefile

2010-12-10 Thread Duke Normandin
Hello list... I'm new to writing makefiles! I want to do the following: `make ARGS= "exec_file src_1 src_2 etc"' I realize that $(ARGS) will contain _all_ the arguments. I need to come up with a way to split out each argument to get to: EXEC-FILE = exec_file SRCS = src_1 src_2 src_3 I'm tryin

Re: Passing multiple arguments to makefile

2010-12-09 Thread duke
On Oct 2, 1:03 am, Henrik Carlqvist wrote: > Duke Normandin wrote: > > I want to do the following: > > > `make ARGS= "exec_file src_1 src_2 etc"' > > > I realize that $(ARGS) will contain _all_ the arguments. I need to > > come up with a way to split out each argument to get to: > > > EXEC-FILE =

Re: Passing multiple arguments to makefile

2010-12-08 Thread Henrik Carlqvist
Duke Normandin wrote: > I want to do the following: > > `make ARGS= "exec_file src_1 src_2 etc"' > > I realize that $(ARGS) will contain _all_ the arguments. I need to > come up with a way to split out each argument to get to: > > EXEC-FILE = exec_file > SRCS = src_1 src_2 src_3 Then why not s