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
[EMAIL PROTECTED]

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

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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to