help-make
[Top][All Lists]
Advanced

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

RE: how to advice please : rules with dependencies created incommands


From: Paul D. Smith
Subject: RE: how to advice please : rules with dependencies created incommands
Date: Mon, 8 May 2006 09:32:06 -0400

%% "PATTON, BILLY \(SBCSI\)" <address@hidden> writes:

  pb> The CREATE variable was just for the purpose of a demo.  Where the
  pb> values in CREATE will com from will be in parameter file passed to
  pb> prog_1.  The Makefile will have no knowledge of what needs to be
  pb> built.  I think I can use Tom Tromey's method of auto-dependency
  pb> to accomplish this.

I don't think so.  That feature only works if you can generate content
during one build that is not needed until the NEXT build.

I doubt you have that situation: I think you need that content during
the same build, unless you always have to run make twice.


I suggest you read the "traditional" auto-dependency generation method
in the GNU make manual.  That's the model you want to follow: using
automatically generated makefile snippets that contain the rules, and
then including them to ensure make will regenerate them properly, then
automatically re-exec itself to read them in.

Before $(eval ...) this was the way all dynamic make rules were
created, and it's still the best way in some situations.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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