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

or somesuch.  
           
        sam th               
        [EMAIL PROTECTED]
        http://www.abisource.com/~sam/
        GnuPG Key:  
        http://www.abisource.com/~sam/key

PGP signature

Reply via email to