VirtualBox

Changeset 719 in kBuild


Ignore:
Timestamp:
Dec 14, 2006 4:48:20 AM (18 years ago)
Author:
bird
Message:

Fixed bug in the library processing causing the output dir not to be created. When autoinstall, install the target when the shortcut is invoked (not very elegant but it does the job).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r701 r719  
    615615#   UNPACKFLAGS
    616616#
    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
    618618# aliases are:
    619619#       pass_fetches
     
    626626#
    627627#   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
    630630#   save space.
    631631#
    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
    633633#   sources be removed. We do this by maintaining a file listing the files
    634634#   and directories that was unpacked. This operation is named 'unfetch'.
    635635#
    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
    637637#   create a digest that is stored in the primary target file. Subsequent
    638638#   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
    640640#       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
    642642#   evaluated.
    643643#
     
    649649# @remark
    650650#
    651 #       This feature will *NOT* work correctly with vanilla GNU make becuase 
     651#       This feature will *NOT* work correctly with vanilla GNU make becuase
    652652#   it makes use of includedep to avoid too many unnecessary files.
    653 # 
     653#
    654654# @todo
    655655#       1. Port md5sum or some equivalent tool and include it in kBuild.
     
    688688        $$(QUIET2)$$(APPEND) $$@
    689689
    690 _TARGET_$(target)_FETCHED += $(out) $(out).checked_$(md5)_$(size) 
     690_TARGET_$(target)_FETCHED += $(out) $(out).checked_$(md5)_$(size)
    691691
    692692# Just a little precaution.
     
    715715.NOTPARALLEL: $(out)
    716716
    717 endef 
     717endef
    718718
    719719## Processes a fetch source
     
    993993#       $(eval $(value def_patch_src)))
    994994#
    995 #_PATCHES += 
     995#_PATCHES +=
    996996#endef
    997997#
     
    10881088$(basename $(notdir $(out)))::
    10891089        + $$(MAKE) -f $$(MAKEFILE) $(out)
     1090
    10901091endef
    10911092
     
    11001101        $$(call MSG_L1,Installing $(target),=> $$@)
    11011102        $$(QUIET)$$(INSTALL) $$(if $(mode),-m $(mode)) $(out) $$@
     1103
     1104ifdef KBUILD_DO_AUTO_INSTALL
     1105$(basename $(notdir $(out)))::
     1106        + $$(MAKE) -f $$(MAKEFILE) $(INSTARGET_$(target))
     1107endif
    11021108endef
    11031109
     
    15341540# @param        $(definst)  The default _INST value.
    15351541# @param        $(typevar)  The name of the variable with all the root targets of its type.
    1536 # @obsolete
     1542# @obsolete Only library uses this now.
    15371543define def_target_install_pluss
    15381544ifndef $(target)_NOINST
     
    15531559endif
    15541560
    1555 _OUT_FILES += $($(target)_OUTPUT_)
     1561_OUT_FILES += $($(target)_OUTPUT_) $(out)
    15561562_CLEAN_FILES += $($(target)_CLEAN)
    15571563_OBJS += $($(target)_OBJS_)
     
    15901596out         := $(outbase)$(suff)
    15911597TARGET_$(target) := $(out)
    1592 $(target)_OBJS_ := 
     1598$(target)_OBJS_ :=
    15931599
    15941600# source -> object
     
    17011707PATH_$(target)   := $(patsubst %/,%,$(dir $(outbase)))
    17021708TARGET_$(target) := $(out)
    1703 $(target)_OBJS_  := 
     1709$(target)_OBJS_  :=
    17041710
    17051711# source -> object
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette