[Top][All Lists]

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

Re: [Axiom-developer] ENV

From: Gabriel Dos Reis
Subject: Re: [Axiom-developer] ENV
Date: 22 Nov 2006 23:51:12 +0100

root <address@hidden> writes:

| > There is this line in the Makefile for regression testing:
| > 
| >   regress:
| >           ${ENV} ${MAKE} DAASE=$(axiom_targetdir) regression-tests
| > 
| > 
| > Notice that there is no explicit mention of sh, but Make will call it
| > because that is the way Make works.
| > 
| > In my case, I stepped into the build directory for input/ and typed
| > make.  At that point ENV (which is exported by my login shell) has the
| > value dictated by POSIX, but not overriden by toplevel Makefile.  So
| > it expanded to /etc/bash.bashrc.
| > 
| > Notice that even if ENV has been overriden by the toplevel Makefile,
| > that doing is still wrong (it is only a matter of time to trip over
| > it) because the shell will see that the variable is defined and
| > attempt to use its value as indicating a file to read and execute.
| An excellent point. Except that none of the makefiles in the axiom
| tree are designed to be executed "standalone". 

The old broken makefiles were designed that way.  Yes.  

-- Gaby

reply via email to

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