help-make
[Top][All Lists]
Advanced

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

Re: How to execute all the rules in a Makefile


From: Stephan Beal
Subject: Re: How to execute all the rules in a Makefile
Date: Mon, 16 Nov 2009 11:03:11 +0100

On Mon, Nov 16, 2009 at 4:09 AM, Peng Yu <address@hidden> wrote:
all: file1 file2 file3 ....

<..many rules where file1 ... are targets>

i don't think can make them implicit, but you don't _have_ to name all the prerequisites in advance. You can build up your list incrementally, like:

#!/usr/bin/make -f
all:

foo:
    .....
all: foo

bar:
   ....
all: bar
...


If your rules are generated via $(eval) you can add "all: $(1)" (or whatever) to the body of the macro which generates the rules.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

reply via email to

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