Changeset 1030


Ignore:
Timestamp:
Jun 4, 2007, 3:49:46 AM (18 years ago)
Author:
bird
Message:

OUTPUT_MAYBE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r1025 r1030  
    997997# Indirect goal for downloading something.
    998998.PRECIOUS: $(out)
    999 $(out) $($(target)_$(srcname)_FETCH_OUTPUT_): | $($(target)_$(srcname)_FETCH_DEPORD_)
     999$(out) + $($(target)_$(srcname)_FETCH_OUTPUT_) +| $($(target)_$(srcname)_FETCH_OUTPUT_MAYBE_)  : \
     1000                | $($(target)_$(srcname)_FETCH_DEPORD_)
    10001001        $$(call MSG_FETCH_DL,$(target),$(source),$(out))
    10011002        @## @todo do fancy stuff like download continuation.
     
    10301031define def_fetch_src_unpack_rule
    10311032# This is the unpack rule. it has an order-only dependency on the download check.
    1032 $(out) $($(target)_$(srcname)_UNPACK_OUTPUT_): $($(target)_$(srcname)_UNPACK_DEPEND_) \
     1033$(out) + $($(target)_$(srcname)_UNPACK_OUTPUT_) +| $($(target)_$(srcname)_UNPACK_OUTPUT_MAYBE_) : \
     1034                $($(target)_$(srcname)_UNPACK_DEPEND_) \
    10331035                | $($(target)_$(srcname)_UNPACK_DEPORD_) $(archive).checked_$(md5)_$(size)
    10341036        $$(call MSG_FETCH_UP,$(target),$(archive),$(inst))
     
    11531155$(target)_$(srcname)_FETCH_CMDS_   := $(TOOL_$(tool)_FETCH_CMDS)
    11541156$(target)_$(srcname)_FETCH_OUTPUT_ := $(TOOL_$(tool)_FETCH_OUTPUT)
     1157$(target)_$(srcname)_FETCH_OUTPUT_MAYBE_ := $(TOOL_$(tool)_FETCH_OUTPUT_MAYBE)
    11551158$(target)_$(srcname)_FETCH_DEPEND_ := $(TOOL_$(tool)_FETCH_DEPEND) $(deps)
    11561159$(target)_$(srcname)_FETCH_DEPORD_ := $(TOOL_$(tool)_FETCH_DEPORD) $(dirdep) $(orderdeps)
     
    12111214$(target)_$(srcname)_UNPACK_CMDS_   := $(TOOL_$(tool)_UNPACK_CMDS)
    12121215$(target)_$(srcname)_UNPACK_OUTPUT_ := $(TOOL_$(tool)_UNPACK_OUTPUT)
     1216$(target)_$(srcname)_UNPACK_OUTPUT_MAYBE_ := $(TOOL_$(tool)_UNPACK_OUTPUT_MAYBE)
    12131217$(target)_$(srcname)_UNPACK_DEPEND_ := $(TOOL_$(tool)_UNPACK_DEPEND) $(deps)
    12141218$(target)_$(srcname)_UNPACK_DEPORD_ := $(TOOL_$(tool)_UNPACK_DEPORD) $(dirdep) $(orderdeps)
     
    13621366
    13631367ifdef TOOL_$(tool)_COMPILE_$(type)_USES_KOBJCACHE
    1364 $(outbase).koc +| $(obj) $($(target)_$(source)_OUTPUT_) : \
     1368$(outbase).koc +| $(obj) $($(target)_$(source)_OUTPUT_) $($(target)_$(source)_OUTPUT_MAYBE_) : \
    13651369                $($(target)_$(source)_DEPEND_) \
    13661370                $(_DEP_COMPILE_CMDS) \
     
    13691373        $$(call MSG_COMPILE,$(target),$(source),$$@,$(type))
    13701374else
    1371 $(obj) + $($(target)_$(source)_OUTPUT_) : \
     1375$(obj) + $($(target)_$(source)_OUTPUT_) +| $($(target)_$(source)_OUTPUT_MAYBE_) : \
    13721376                $($(target)_$(source)_DEPEND_) \
    13731377                $(_DEP_COMPILE_CMDS) \
     
    13761380        $$(call MSG_COMPILE,$(target),$(source),$$@,$(type))
    13771381ifdef TOOL_$(tool)_COMPILE_$(type)_DONT_PURGE_OUTPUT
    1378         $$(QUIET)$$(RM) -f $(dep) $(obj) $($(target)_$(source)_OUTPUT_)
     1382        $$(QUIET)$$(RM) -f $(dep) $(obj) $($(target)_$(source)_OUTPUT_) $($(target)_OUTPUT_MAYBE_)
    13791383endif
    13801384endif
     
    14111415# @param    $(out)
    14121416# @param    $($(target)_OUTPUT_)    Output files from the link.
     1417# @param    $($(target)_OUTPUT_MAYBE_)  Output files that the link may perhaps create.
    14131418# @param    $($(target)_DEPEND_)        Dependencies.
    14141419# @param    $($(target)_DEPORD_)    Dependencies which should only affect build order.
     
    14161421# @param    $($(target)_CMDS_PREV_) The link commands from the previous run.
    14171422define def_link_rule
    1418 $(out) + $($(target)_OUTPUT_) : \
     1423$(out) + $($(target)_OUTPUT_) +| $($(target)_OUTPUT_MAYBE_) : \
    14191424                $($(target)_DEPEND_) \
    14201425                $(_DEP_LINK_CMDS) \
     
    14221427                $($(target)_DEPORD_)
    14231428        $$(call MSG_LINK,$(target),$$@,$(tool_do))
    1424         $$(QUIET)$$(RM) -f $(dep) $(out) $($(target)_OUTPUT_)
     1429        $$(QUIET)$$(RM) -f $(dep) $(out) $($(target)_OUTPUT_) $($(target)_OUTPUT_MAYBE_)
    14251430
    14261431$($(target)_CMDS_)
     
    15281533endif
    15291534
    1530 _OUT_FILES += $($(target)_OUTPUT_) $(out)
     1535_OUT_FILES += $($(target)_OUTPUT_) $($(target)_OUTPUT_MAYBE_) $(out)
    15311536_CLEAN_FILES += $($(target)_CLEAN) $($(target)_CLEAN.$(bld_trg)) $($(target)_CLEAN.$(bld_trg).$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_cpu)) $($(target)_CLEAN.$(bld_type))
    15321537_DIRS += $($(target)_BLDDIRS) $($(target)_BLDDIRS.$(bld_trg)) $($(target)_BLDDIRS.$(bld_trg).$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_cpu)) $($(target)_BLDDIRS.$(bld_type))
     
    17301735endif
    17311736$(target)_OUTPUT_ := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT)
     1737$(target)_OUTPUT_MAYBE_ := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT_MAYBE)
    17321738$(target)_DEPEND_ := $(TOOL_$(tool)_LINK_LIBRARY_DEPEND) $(deps) $(objs)
    17331739$(target)_DEPORD_ := $(TOOL_$(tool)_LINK_LIBRARY_DEPORD) $(dirdep) $(orderdeps)
     
    20542060endif
    20552061$(target)_OUTPUT_ := $(TOOL_$(tool)_$(tool_do)_OUTPUT)
     2062$(target)_OUTPUT_MAYBE_ := $(TOOL_$(tool)_$(tool_do)_OUTPUT_MAYBE)
    20562063$(target)_DEPEND_ := $(TOOL_$(tool)_$(tool_do)_DEPEND) $(deps) $(objs)
    20572064$(target)_DEPORD_ := $(TOOL_$(tool)_$(tool_do)_DEPORD) $(dirdep) $(orderdeps)
Note: See TracChangeset for help on using the changeset viewer.