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/
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make