[jamming] Problem with header file scanning and updates

Peter Klotz peter.klotz at aon.at
Mon Feb 10 12:59:33 PST 2003


> Is it rebuilt the second time you run Jam?
Yes.

> Does Jam know that base.hpp depends on base.ui?
Yes, my rule looks as follows:

rule UicR
{
    # UicR somefile.cpp : somefile.ui ;
    local _ui = [ FGristFiles $(>) ] ; # .ui file
    local _hpp = [ FGristFiles $(<:S=.hpp) ] ; # .hpp file
    local _cpp = [ FGristFiles $(<) ] ; # .cpp file
    SEARCH on $(_ui) = $(SEARCH_SOURCE) ;
    MakeLocate $(_cpp) $(_hpp) : $(LOCATE_SOURCE) ;
    Depends uic : $(_cpp) $(_hpp) ;
    Depends  $(_cpp) $(_hpp) : $(_ui) ;
    Includes $(_cpp) : $(_hpp) ;
    Clean clean : $(_cpp) $(_hpp) ;

    Uic $(_cpp) $(_hpp) : $(_ui) ; # call corresponding action
}

And the corresponding action is:

actions Uic
{
    cd $(>:D)
    $(UIC) -o $(<[2]:B)$(<[2]:S) $(>:B)$(>:S)
    $(UIC) -o $(<[1]:B)$(<[1]:S) -impl $(<[2]:B)$(<[2]:S) $(>:B)$(>:S)
}

Best regards, Peter.




More information about the jamming mailing list