Subject: Re: predefines.mk : How to ignore?
From: Sam TH (email@example.com)
Date: Mon Feb 26 2001 - 22:10:25 CST
On Mon, Feb 26, 2001 at 10:23:12PM -0500, Tom Briggs wrote:
> On Mon, 26 Feb 2001, Michael D. Pritchett wrote:
> > Might I suggest a shell test command such as we use when checking the need
> > to run ./configure?
> > @if [ -r /path/to/predefines.mk]; then
> > include /path/to/predefines.mk
> > fi;
> I gave this a shot, but no dice. I think the underlying problem here
> is that we're not inside a target at this point; as far as I know you
> can't execute commands outside a target.
you should be able to do some fun things with backquotes (`).
like -include $(foo)
where foo = `if test -e predefines.mk; then echo "predefines.mk" fi
This archive was generated by hypermail 2b25 : Mon Feb 26 2001 - 22:07:15 CST