help-make
[Top][All Lists]
Advanced

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

Re: exception to Paul's Second Rule?


From: Paul D. Smith
Subject: Re: exception to Paul's Second Rule?
Date: Thu, 16 Oct 2003 22:11:52 -0400

%% Noel Yap <address@hidden> writes:

  ny> YMMV, indeed.  I think I wasn't clear in my last post.  Since the
  ny> OBJDIR info will be split among several makefiles, several
  ny> $(shell)'s will need to be done, one for each makefile.

I just do something like:

    MAKEDIRLIST += foo bar
      ...
    MAKEDIRLIST += biz
      ...
    MAKEDIRLIST += boz

        ...

    $(shell for d in $(MAKEDIRLIST); do ...etc)

Just put the $(shell ...) at the end and do them all at once.  You don't
have to do them in order: remember all makefiles are read first before
any rules are run.

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