axiom-developer
[Top][All Lists]
Advanced

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

[Axiom-developer] rule for making NRLIBs


From: Waldek Hebisch
Subject: [Axiom-developer] rule for making NRLIBs
Date: Sat, 7 Oct 2006 05:41:13 +0200 (CEST)

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, 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.

-- 
                              Waldek Hebisch
address@hidden 




reply via email to

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