Ignore:
Timestamp:
Dec 17, 2006, 9:36:36 AM (19 years ago)
Author:
bird
Message:

More sanity checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r743 r744  
    361361# @param    $(target)   Target name
    362362define def_inherit_template_one_accumulate_r1
     363ifdef _$(target)_$(prop)_R
     364$(error kBuild: The target $(target) appears more than once in the target lists! Please correct the makefile(s))
     365endif
    363366ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop)
    364367$(eval _$(target)_$(prop)_R = $(value $(target)_$(prop)))
     
    880883# @param        bld_trg_arch
    881884define def_fetch
     885# sanity check.
     886ifdef $(target)_ALREADY_PROCESSED
     887 $(error kBuild: The target $(target) appears more than once in the target lists! Please correct the makefile(s). Prev: $(EXT) This: $($(target)_ALREADY_PROCESSED))
     888endif
     889$(target)_ALREADY_PROCESSED := fetch
    882890
    883891# common
     
    11391147# @param    $(target)   Normalized library (target) name.
    11401148define def_lib
     1149# sanity check.
     1150ifdef $(target)_ALREADY_PROCESSED
     1151 $(error kBuild: The target $(target) appears more than once in the target lists! Please correct the makefile(s). Prev: $(EXT) This: $($(target)_ALREADY_PROCESSED))
     1152endif
     1153$(target)_ALREADY_PROCESSED := lib
     1154
    11411155# library basics
    11421156## @todo prefix
     
    12701284# @param    $(typevar)  The name of the variable with all the root targets of its type.
    12711285define def_link_common
     1286# sanity check.
     1287ifdef $(target)_ALREADY_PROCESSED
     1288 $(error kBuild: The target $(target) appears more than once in the target lists! Please correct the makefile(s). Prev: $(EXT) This: $($(target)_ALREADY_PROCESSED))
     1289endif
     1290$(target)_ALREADY_PROCESSED := $(EXT)
     1291
    12721292# basics
    12731293bld_type    := $(firstword $($(target)_BLD_TYPE)     $(BUILD_TYPE))
     
    12981318$(eval $(value def_target_sources))
    12991319
    1300 # more library stuff.
     1320# more link stuff.
    13011321tool        := $(call _TARGET_TOOL,$(target),LD)
    13021322outbase     := $(call TARGET_BASE,$(target),$(target))
     
    18611881## process one install target.
    18621882define def_install
     1883# sanity check.
     1884ifdef $(target)_ALREADY_PROCESSED
     1885 $(error kBuild: The target $(target) appears more than once in the target lists! Please correct the makefile(s). Prev: $(EXT) This: $($(target)_ALREADY_PROCESSED))
     1886endif
     1887$(target)_ALREADY_PROCESSED := install
     1888
     1889# the basics.
    18631890bld_type  := $(firstword $($(target)_BLD_TYPE)     $(BUILD_TYPE))
    18641891bld_trg   := $(firstword $($(target)_BLD_TRG)      $(BUILD_TARGET))
Note: See TracChangeset for help on using the changeset viewer.