help-make
[Top][All Lists]
Advanced

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

Re: Adding new prerequisites to a target


From: John Graham-Cumming
Subject: Re: Adding new prerequisites to a target
Date: Tue, 30 Aug 2005 14:39:54 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104

Bhaskar G wrote:
gmake NEWRULE=c

all: a b $(NEWRULE)
        @echo $@

a b:
        @echo $@
$(NEWRULE):
        @echo $@

That seems like a reasonable approach.   You could also have:

all: a b
         @echo $@

a b:
         @echo $@

all: $(NEWRULE)

$(NEWRULE):
         @echo $@


But that's pretty much the same thing.

John.
--
John Graham-Cumming
address@hidden

Home: http://www.jgc.org/
POPFile: http://getpopfile.org/

Sign up for my Spam and Anti-spam Newsletter
at http://www.jgc.org/




reply via email to

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