help-make
[Top][All Lists]
Advanced

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

Re: Static pattern and $$(@F)


From: Paul D. Smith
Subject: Re: Static pattern and $$(@F)
Date: Wed, 11 Sep 2002 13:10:47 -0400

%% Yogesh Bhagwat <address@hidden> writes:

  yb> Unfortunately it is not so. FILES_IN_DIR_A should really be
  yb> FILES_IN_DIRS_A_TO_Z.

  yb> So this means I need to write static pattern rules for each of the
  yb> dirs.

Yes.

  yb> But that may not be possible as the dirs themselves are coming
  yb> out of a wildcard expression.

Then you have two choices.  The first is to use make's auto-re-exec
feature to dynamically construct a makefile containing the proper rules,
which you can include using make's "include" feature.  This is the
traditional way to support non-static data in makefiles which can't be
handled through make's normal implicit rule support.

The second is to wait for a bit:

  yb> I am using 3.79.1 version of gnu make.

  >> The next version of GNU make (3.80) does support this strange SysV
  >> construct--at least to some extent.

:)

There's a pretest of this release available now, if you want to try it
(I'd actually like someone to test this capability in a "real life"
situation before the official release).

-- 
-------------------------------------------------------------------------------
 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]