Changeset 719 in kBuild
- Timestamp:
- Dec 14, 2006 4:48:20 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r701 r719 615 615 # UNPACKFLAGS 616 616 # 617 # As usual the target name is an alias for 'creating' the target. Other 617 # As usual the target name is an alias for 'creating' the target. Other 618 618 # aliases are: 619 619 # pass_fetches … … 626 626 # 627 627 # This is a little bit complex because we must guarantee that if a source file 628 # changes only sligtly we must refetch it and to a proper unpacking of it. It 629 # is also a desire that fetched archives and unpacked files can be deleted to 628 # changes only sligtly we must refetch it and to a proper unpacking of it. It 629 # is also a desire that fetched archives and unpacked files can be deleted to 630 630 # save space. 631 631 # 632 # Thus, we must be able to cleanup what we've unpacked should any of the 632 # Thus, we must be able to cleanup what we've unpacked should any of the 633 633 # sources be removed. We do this by maintaining a file listing the files 634 634 # and directories that was unpacked. This operation is named 'unfetch'. 635 635 # 636 # We make use of the SIZE and MD5 attributes for each of the sources to 636 # We make use of the SIZE and MD5 attributes for each of the sources to 637 637 # create a digest that is stored in the primary target file. Subsequent 638 638 # runswill compare their digest with it to decide if a refetch is required. 639 # When a refetch is found necessary, an 'unfetch' is performed first to 639 # When a refetch is found necessary, an 'unfetch' is performed first to 640 640 # clean out old files and directores. Note even changes in source order 641 # will cause a refetch due to the way the digest is constructed and 641 # will cause a refetch due to the way the digest is constructed and 642 642 # evaluated. 643 643 # … … 649 649 # @remark 650 650 # 651 # This feature will *NOT* work correctly with vanilla GNU make becuase 651 # This feature will *NOT* work correctly with vanilla GNU make becuase 652 652 # it makes use of includedep to avoid too many unnecessary files. 653 # 653 # 654 654 # @todo 655 655 # 1. Port md5sum or some equivalent tool and include it in kBuild. … … 688 688 $$(QUIET2)$$(APPEND) $$@ 689 689 690 _TARGET_$(target)_FETCHED += $(out) $(out).checked_$(md5)_$(size) 690 _TARGET_$(target)_FETCHED += $(out) $(out).checked_$(md5)_$(size) 691 691 692 692 # Just a little precaution. … … 715 715 .NOTPARALLEL: $(out) 716 716 717 endef 717 endef 718 718 719 719 ## Processes a fetch source … … 993 993 # $(eval $(value def_patch_src))) 994 994 # 995 #_PATCHES += 995 #_PATCHES += 996 996 #endef 997 997 # … … 1088 1088 $(basename $(notdir $(out))):: 1089 1089 + $$(MAKE) -f $$(MAKEFILE) $(out) 1090 1090 1091 endef 1091 1092 … … 1100 1101 $$(call MSG_L1,Installing $(target),=> $$@) 1101 1102 $$(QUIET)$$(INSTALL) $$(if $(mode),-m $(mode)) $(out) $$@ 1103 1104 ifdef KBUILD_DO_AUTO_INSTALL 1105 $(basename $(notdir $(out))):: 1106 + $$(MAKE) -f $$(MAKEFILE) $(INSTARGET_$(target)) 1107 endif 1102 1108 endef 1103 1109 … … 1534 1540 # @param $(definst) The default _INST value. 1535 1541 # @param $(typevar) The name of the variable with all the root targets of its type. 1536 # @obsolete 1542 # @obsolete Only library uses this now. 1537 1543 define def_target_install_pluss 1538 1544 ifndef $(target)_NOINST … … 1553 1559 endif 1554 1560 1555 _OUT_FILES += $($(target)_OUTPUT_) 1561 _OUT_FILES += $($(target)_OUTPUT_) $(out) 1556 1562 _CLEAN_FILES += $($(target)_CLEAN) 1557 1563 _OBJS += $($(target)_OBJS_) … … 1590 1596 out := $(outbase)$(suff) 1591 1597 TARGET_$(target) := $(out) 1592 $(target)_OBJS_ := 1598 $(target)_OBJS_ := 1593 1599 1594 1600 # source -> object … … 1701 1707 PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))) 1702 1708 TARGET_$(target) := $(out) 1703 $(target)_OBJS_ := 1709 $(target)_OBJS_ := 1704 1710 1705 1711 # source -> object
Note:
See TracChangeset
for help on using the changeset viewer.