help-make
[Top][All Lists]
Advanced

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

Re: How to use shell builtin command in Makefile?


From: Paul Smith
Subject: Re: How to use shell builtin command in Makefile?
Date: Wed, 22 Oct 2008 11:53:25 -0400

On Wed, 2008-10-22 at 09:00 -0500, Peng Yu wrote:
> >    SUBDIRS := $(filter-out backup bash,$(patsubst %/.,%,$(wildcard */.)))
> 
> This would give something other than directories. Is there a way in
> make to get only directory names?

No it wouldn't.  Did you try it?

Hint: I'm using */., not *; the former will match only directories
(obviously files can't have a /. at the end).

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "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]