Changeset 1030
- Timestamp:
- Jun 4, 2007, 3:49:46 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r1025 r1030 997 997 # Indirect goal for downloading something. 998 998 .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_) 1000 1001 $$(call MSG_FETCH_DL,$(target),$(source),$(out)) 1001 1002 @## @todo do fancy stuff like download continuation. … … 1030 1031 define def_fetch_src_unpack_rule 1031 1032 # 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_) \ 1033 1035 | $($(target)_$(srcname)_UNPACK_DEPORD_) $(archive).checked_$(md5)_$(size) 1034 1036 $$(call MSG_FETCH_UP,$(target),$(archive),$(inst)) … … 1153 1155 $(target)_$(srcname)_FETCH_CMDS_ := $(TOOL_$(tool)_FETCH_CMDS) 1154 1156 $(target)_$(srcname)_FETCH_OUTPUT_ := $(TOOL_$(tool)_FETCH_OUTPUT) 1157 $(target)_$(srcname)_FETCH_OUTPUT_MAYBE_ := $(TOOL_$(tool)_FETCH_OUTPUT_MAYBE) 1155 1158 $(target)_$(srcname)_FETCH_DEPEND_ := $(TOOL_$(tool)_FETCH_DEPEND) $(deps) 1156 1159 $(target)_$(srcname)_FETCH_DEPORD_ := $(TOOL_$(tool)_FETCH_DEPORD) $(dirdep) $(orderdeps) … … 1211 1214 $(target)_$(srcname)_UNPACK_CMDS_ := $(TOOL_$(tool)_UNPACK_CMDS) 1212 1215 $(target)_$(srcname)_UNPACK_OUTPUT_ := $(TOOL_$(tool)_UNPACK_OUTPUT) 1216 $(target)_$(srcname)_UNPACK_OUTPUT_MAYBE_ := $(TOOL_$(tool)_UNPACK_OUTPUT_MAYBE) 1213 1217 $(target)_$(srcname)_UNPACK_DEPEND_ := $(TOOL_$(tool)_UNPACK_DEPEND) $(deps) 1214 1218 $(target)_$(srcname)_UNPACK_DEPORD_ := $(TOOL_$(tool)_UNPACK_DEPORD) $(dirdep) $(orderdeps) … … 1362 1366 1363 1367 ifdef TOOL_$(tool)_COMPILE_$(type)_USES_KOBJCACHE 1364 $(outbase).koc +| $(obj) $($(target)_$(source)_OUTPUT_) : \1368 $(outbase).koc +| $(obj) $($(target)_$(source)_OUTPUT_) $($(target)_$(source)_OUTPUT_MAYBE_) : \ 1365 1369 $($(target)_$(source)_DEPEND_) \ 1366 1370 $(_DEP_COMPILE_CMDS) \ … … 1369 1373 $$(call MSG_COMPILE,$(target),$(source),$$@,$(type)) 1370 1374 else 1371 $(obj) + $($(target)_$(source)_OUTPUT_) : \1375 $(obj) + $($(target)_$(source)_OUTPUT_) +| $($(target)_$(source)_OUTPUT_MAYBE_) : \ 1372 1376 $($(target)_$(source)_DEPEND_) \ 1373 1377 $(_DEP_COMPILE_CMDS) \ … … 1376 1380 $$(call MSG_COMPILE,$(target),$(source),$$@,$(type)) 1377 1381 ifdef 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_) 1379 1383 endif 1380 1384 endif … … 1411 1415 # @param $(out) 1412 1416 # @param $($(target)_OUTPUT_) Output files from the link. 1417 # @param $($(target)_OUTPUT_MAYBE_) Output files that the link may perhaps create. 1413 1418 # @param $($(target)_DEPEND_) Dependencies. 1414 1419 # @param $($(target)_DEPORD_) Dependencies which should only affect build order. … … 1416 1421 # @param $($(target)_CMDS_PREV_) The link commands from the previous run. 1417 1422 define def_link_rule 1418 $(out) + $($(target)_OUTPUT_) : \1423 $(out) + $($(target)_OUTPUT_) +| $($(target)_OUTPUT_MAYBE_) : \ 1419 1424 $($(target)_DEPEND_) \ 1420 1425 $(_DEP_LINK_CMDS) \ … … 1422 1427 $($(target)_DEPORD_) 1423 1428 $$(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_) 1425 1430 1426 1431 $($(target)_CMDS_) … … 1528 1533 endif 1529 1534 1530 _OUT_FILES += $($(target)_OUTPUT_) $( out)1535 _OUT_FILES += $($(target)_OUTPUT_) $($(target)_OUTPUT_MAYBE_) $(out) 1531 1536 _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)) 1532 1537 _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)) … … 1730 1735 endif 1731 1736 $(target)_OUTPUT_ := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT) 1737 $(target)_OUTPUT_MAYBE_ := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT_MAYBE) 1732 1738 $(target)_DEPEND_ := $(TOOL_$(tool)_LINK_LIBRARY_DEPEND) $(deps) $(objs) 1733 1739 $(target)_DEPORD_ := $(TOOL_$(tool)_LINK_LIBRARY_DEPORD) $(dirdep) $(orderdeps) … … 2054 2060 endif 2055 2061 $(target)_OUTPUT_ := $(TOOL_$(tool)_$(tool_do)_OUTPUT) 2062 $(target)_OUTPUT_MAYBE_ := $(TOOL_$(tool)_$(tool_do)_OUTPUT_MAYBE) 2056 2063 $(target)_DEPEND_ := $(TOOL_$(tool)_$(tool_do)_DEPEND) $(deps) $(objs) 2057 2064 $(target)_DEPORD_ := $(TOOL_$(tool)_$(tool_do)_DEPORD) $(dirdep) $(orderdeps)
Note:
See TracChangeset
for help on using the changeset viewer.