Ignore:
Timestamp:
Dec 17, 2006, 4:59:33 AM (19 years ago)
Author:
bird
Message:

Added a variation on the $(comp-vars) function called $(comp-cmds) which compares command by command instead of the string as a whole ignoring spaces and job control chars.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r729 r730  
    982982## wrapper the compile command dependency check.
    983983ifndef NO_COMPILE_CMDS_DEPS
    984 _DEP_COMPILE_CMDS = $(comp-vars $(target)_$(source)_CMDS_PREV_,$(target)_$(source)_CMDS_,FORCE)
     984 ifeq ($(filter comp-cmds,$(KMK_FEATURES)),comp-cmds)
     985  _DEP_COMPILE_CMDS = $(comp-cmds $(target)_$(source)_CMDS_PREV_,$(target)_$(source)_CMDS_,FORCE)
     986 else
     987  _DEP_COMPILE_CMDS = $(comp-vars $(target)_$(source)_CMDS_PREV_,$(target)_$(source)_CMDS_,FORCE)
     988 endif
    985989else
    986 _DEP_COMPILE_CMDS =
     990 _DEP_COMPILE_CMDS =
    987991endif
    988992
     
    10191023## wrapper the link command dependency check.
    10201024ifndef NO_COMPILE_CMDS_DEPS
    1021 _DEP_LINK_CMDS = $(comp-vars $(target)_CMDS_PREV_,$(target)_CMDS_,FORCE)
     1025 ifeq ($(filter comp-cmds,$(KMK_FEATURES)),comp-cmds)
     1026  _DEP_LINK_CMDS = $(comp-cmds $(target)_CMDS_PREV_,$(target)_CMDS_,FORCE)
     1027 else
     1028  _DEP_LINK_CMDS = $(comp-vars $(target)_CMDS_PREV_,$(target)_CMDS_,FORCE)
     1029 endif
    10221030else
    1023 _DEP_LINK_CMDS =
     1031 _DEP_LINK_CMDS =
    10241032endif
    10251033
Note: See TracChangeset for help on using the changeset viewer.