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:34:34 -0400

On Thu, 2005-06-23 at 13:07 -0400, Robert P. J. Day wrote:
> sqlite_header_file:  sqlite[345].h
> 
> or something at least as general.  i don't want to have to figure out
> the current version, i just want to say, "there's a rule in this
> makefile *somewhere* of this general form -- go find it and process
> it."

Why don't you just encode the version in a variable and use it.  It
would surely be clearer than globbing, because what if there were both
sqlite3.h and sqlite4.h present?

I would do

    SQLITE_VERSION := 3

    sqlite_header_file: sqlite$(SQLITE_VERSION).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]