help-make
[Top][All Lists]
Advanced

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

Re: how to represent a character class of targets?


From: John Graham-Cumming
Subject: Re: how to represent a character class of targets?
Date: Thu, 23 Jun 2005 16:53:50 -0400

On Thu, 2005-06-23 at 16:40 -0400, Robert P. J. Day wrote:
> i wsa just trying to be unspeakably lazy and be able to refer to an
> arbitrary sqlite source tree and let the makefile figure it out from
> there, that's all.

Well, if what you want to do is find just one sqliteX.h then you could
always do:

sqlite_header_file: $(firstword $(wildcard sqlite[3-5].h))

and then I guess you'll want to sort them so something like this will
work:

sqlite_header_file: $(call last,$(sort $(wildcard sqlite[3-5].h)))

John.
-- 
John Graham-Cumming

Home: http://www.jgc.org/
Work: http://www.electric-cloud.com/
POPFile: http://getpopfile.org/
GNU Make Standard Library: http://gmsl.sf.net/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]