%% Shawn Minto <[EMAIL PROTECTED]> writes:

  sm> I am trying to write a makefile to build a website.  Currently, it
  sm> is working, but since I have many different directories (and they
  sm> are very dynamic) I need to keep updating the makefile.  For each
  sm> directory I am using, I have something that looks like the
  sm> following:

  sm> dir1 = $(wildcard /basedir/dir/*.*)

  sm> I would like some way that I could just specify the basedir and it
  sm> will do a search and find all of the files that I need

You'll have to use find (for example).  There is no builtin
functionality in GNU make that will do this for you.

  dirlist := $(shell find /basedir/dir -name '*.*' -print)

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