help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HELP! Can I construct individial shell commands using a function


From: chenjun
Subject: Re: HELP! Can I construct individial shell commands using a function
Date: Sun, 27 Feb 2011 13:10:28 +0800
User-agent: RoundCube Webmail/0.3.1

Thank you so much, Luke. You've revealed this great trick just in time,
about which GNU make manual does not say. Correct me if it does say.

On Sat, 26 Feb 2011 21:23:15 -0500, Luke Shumaker <address@hidden>
wrote:
> The trick is to get the different commands on different lines.  Try
> this:
> 
> define _ExecuteShcmdArray
> $(foreach c,$1,@$($c)
> )
> endef
> 
> shellcmd1 = cd .. ; pwd
> shellcmd2 = cd .. ; pwd
> 
> all:
>       $(call _ExecuteShcmdArray,shellcmd1 shellcmd2)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]