axiom-developer
[Top][All Lists]
Advanced

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

Re: [Axiom-developer] rule for making NRLIBs


From: Vanuxem Grégory
Subject: Re: [Axiom-developer] rule for making NRLIBs
Date: Sat, 07 Oct 2006 16:00:08 +0200

Le samedi 07 octobre 2006 à 05:41 +0200, Waldek Hebisch a écrit :
> The current rule in src/algebra/Makefile.pamphlet does not work
> during re-make. Namely, SPAD compiler fails when NRLIB directory
> already exists. I propose to add the following:
> 
> --- pp/build-improvements/src/algebra/Makefile.pamphlet       2006-09-29 
> 21:09:42.000000000 +0200
> +++ build-improvements.nn5/src/algebra/Makefile.pamphlet      2006-10-07 
> 05:32:35.000000000 +0200
> @@ -1631,6 +1631,7 @@
>  .PRECIOUS: ${MID}/%.NRLIB/code.o
>  ${MID}/%.NRLIB/code.o: ${MID}/%.spad
>       @ echo compiling $*.spad to $*.NRLIB
> +     rm -rf ${MID}/$*.NRLIB
>       @ (cd ${MID} ; \
>          if [ -z "${NOISE}" ] ; then \
>           echo ")co $*.spad" | ${INTERPSYS}  ; \
> 
> One could also modify SPAD compiler to remove existing NRLIB, 

I think it's the same bug than the bug #302 . See the thread
"Cannot Rename The File Erlib To NRLIB"  in Axiom-developer mail
Archives. Anyway this issue has to be discussed since it has a lot of
implications in the interpreter; some functions need to be modified,
they use (probe-file ...) and (delete-file ...) on directories. There is
apparently no consensus, as far as I know, on what 'probe-file' and
'delete-file' have to do for directories so...

Greg

P.S. I have encountered this issue in a totally different context this
is why I say a lot of implications; grep the interpreter for probe-file
and delete-file. I have fixed some parts of the interpreter in this
regard but probably not all, my aim was/is different.

> but
> remove NRLIB from the makefile has advantage that build will fail
> if NRLIB can not be recompiled -- currently build goes on using
> stale NRLIB, which is very confusing for testing.
> 





reply via email to

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