help-make
[Top][All Lists]
Advanced

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

Re: multi line shell commands


From: Greg Chicares
Subject: Re: multi line shell commands
Date: Sun, 10 Apr 2011 14:57:05 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

On 2011-04-10 10:16Z, ali hagigat wrote:
> The make manual does not explain how to specify multi line shell
> commands like if and for as a recipe.

See the explanation and examples here:
  http://www.gnu.org/software/make/manual/make.html#Splitting-Lines
And here's an example of a for-loop split across multiple lines:
  http://www.gnu.org/software/make/manual/make.html#Phony-Targets
  subdirs:
        for dir in $(SUBDIRS); do \
                $(MAKE) -C $$dir; \
        done



reply via email to

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