Why do you have to check if the directory exists?  If it doesn't exist
the wildcard will evaluate to the empty string.

As part of the build flow  the copy in the PVCS get copied to the
SOURCE_TREE.  When no edits have been done then they would be identical.
Doubling the work

-----Original Message-----
From: Paul Smith [mailto:[EMAIL PROTECTED] On Behalf Of Paul D. Smith
Sent: Monday, March 20, 2006 11:56 AM
To: PATTON, BILLY (SBCSI)
Cc: [email protected]
Subject: RE: Must be very simple


%% "PATTON, BILLY \(SBCSI\)" <[EMAIL PROTECTED]> writes:

  pb> The wildcard would work but it would have to do something like

  pb> if directory $(TOP_DIR)/SOURCE_TREE exists then
  pb>   -include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/make.include
  pb>   -include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/make.dependencies
  pb>   -include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/*/make.include
  pb>   -include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/*/make.dependencies
  pb>   -include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/*/*/make.include
  pb>   -include $(wildcard
$(TOP_DIR)/SOURCE_TREE/*/*/*/make.dependencies
  pb> else
  pb>   -include $(wildcard $(PVCS_DIR)/static_makefiles/*.make.include
  pb> endif

PVCS?  Really?  Ouch.


  pb> The ones under the static_makefiles will mostly be exactly the
  pb> same as in the SOURCE_TREE.  But including both will result in K's
  pb> warning about duplicate names.

So, don't include both.  That's what the firstword is for in my example.

Using "*" like this is going to be an issue of course... I don't see how
you're relating a path like this:

    $(TOP_DIR)/SOURCE_TREE/*/make.include

with one like this:

    $(PVCS_DIR)/static_makefiles/*.make.include

...???

-- 
------------------------------------------------------------------------
-------
 Paul D. Smith <[EMAIL PROTECTED]>          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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to