help-make
[Top][All Lists]
Advanced

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

Re-build rule without changing timestamp.


From: roopa . mahishi
Subject: Re-build rule without changing timestamp.
Date: Fri, 3 Sep 2004 14:14:31 +0530




Hi,
I have the following scenario:
-------------------------------------
#The contents of the file "foo" are captured in a variable.
ENV_FILE_CONTENTS := $(shell cat foo)

#pre-requisites for TARGET1 are identified
$(TARGET1)::     $(ENV_FILE_CONTENTS) \
                  $(PREQ_REQ2)

#Other stamts...
..
..
---------------------------------
where "foo" is the file that holds the environment variables that point to
my project-paths like
$(ENV1)
$(ENV2)
$(ENV3) etc

where in turn $(ENV1),$(ENV2),$(ENV3),etc are set either on command line or
by using a
batch file.

By changing the value of 1 or more environment value, can I force gmake to
re-build the rule without changing the timestamp of the file "foo"?

Help in this regard is highly appreciated,
Thanks in advance,
Rgds,
Roopa


-------------------------------------------------------------------------------------------------------------

Philips Semiconductors / CTO / Design Technology Group
E-mail:   address@hidden
Phone:  +91 80 2557 9000, Ext 3019
Fax:       +91 80 2556 0581
Office:    Philips Innovation Campus, 3rd floor
Address: No 1, Murphy Road, Ulsoor, Bangalore - 560 008
Country:  INDIA
---------------------------------------------------------------------------------------------------------

















reply via email to

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