[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Recurse directories
From: |
Paul D. Smith |
Subject: |
Re: Recurse directories |
Date: |
Fri, 18 Jun 2004 17:17:22 -0400 |
%% Shawn Minto <address@hidden> 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 <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