Using make 3.82
Check the following makefile please,
========
define _ExecuteShcmdArray
@$(foreach c,$1,$($c);) # Not what I desire, how can I???
endef
shellcmd1 = cd .. ; pwd
shellcmd2 = cd .. ; pwd
all:
$(call _ExecuteShcmdArray,shellcmd1 shellcmd2)
========
It outputs somthing like
=========
G:/w/makingsys/GMU-addons
G:/w/makingsys
=========
But what I disire is
=========
G:/w/makingsys/GMU-addons
G:/w/makingsys/GMU-addons
=========
To clarify, the question is, I want to write a function called
_ExecuteShcmdArray, and it can execute variable number of shell commands
according to parameter($1) given. In that above example, I hope shellcmd1
and shellcmd2 can be executed in different shell process, but how to write
_ExecuteShcmdArray function to accomplish that goal?
Can $(eval ) help this?
Thank you in advance.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make