help-make
[Top][All Lists]
Advanced

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

Adding new prerequisites to a target


From: Bhaskar G
Subject: Adding new prerequisites to a target
Date: Tue, 30 Aug 2005 17:08:55 +0530


Hi,

I would like to add a new prerequisite to the rule all, I can achieve this as mentioned below. I would like
to know if there is any other way around to achieve this. I am using gmake 3.80 in linux.

gmake -f bg1.mk NEWRULE=c
a
b
c
all

gmake NEWRULE=c

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

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

Thanks and Regards,
Bhaskar
reply via email to

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