root <[EMAIL PROTECTED]> 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


_______________________________________________
Axiom-developer mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/axiom-developer

Reply via email to