[jamming] Jam always rebuilds

Mihai Christodorescu mihai at cs.wisc.edu
Fri Nov 19 08:44:50 PST 2004


I restructured my Jamfile to change the location where certain targets are 
stored and it rebuilds everything everytime!

My Jamfile:
----------
SubDir TOP ;

C++ = g++ ;

SEARCH_SOURCE = src ;
LOCATE_TARGET = obj ;

C++Main test : test.cpp ;
LinkLibraries test : libtest ;
MakeLocate test$(SUFEXE) : bin ;

C++Library libtest : libtest.cpp ;
MakeLocate libtest$(SUFLIB) : lib ;

My Jamrules:
-----------
rule C++Main
{
    Main $(<) : $(>) ;
    LINK on $(<) = $(C++) ;
}

rule C++Library
{
    Library $(<) : $(>) ;
    LINK on $(<) = $(C++) ;
}

Output from Jam:
----------------
$ jam
...found 18 target(s)...
...updating 3 target(s)...
C++ obj/libtest.o
Archive lib/libtest.a
Ranlib lib/libtest.a
Link bin/test
Chmod1 bin/test
...updated 3 target(s)...

The updating occurs every time I run Jam, with no changes to the source 
files. Any help is appreciated.

Mihai

-- 
  - mihai at cs.wisc.edu - http://www.cs.wisc.edu/~mihai -
-------------------------------------------------------
   The man of knowledge must be able not only to love
  his enemies but also to hate his friends.
                                  - Friedrich Nietzsche
-------------------------------------------------------
     -- Feed the machine that burns in your head. --



More information about the jamming mailing list