Ignore:
Timestamp:
Jan 20, 2007, 7:36:40 PM (19 years ago)
Author:
bird
Message:

Macros for all messages. KBUILD_MSG_STYLE. KBUILD_VERBOSE={1,2,*}. PRINTF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r770 r776  
    624624.PRECIOUS: $(out)
    625625$(out) $($(target)_$(srcname)_FETCH_OUTPUT_): | $($(target)_$(srcname)_FETCH_DEPORD_)
    626         $$(call MSG_L1,Downloading $(source)...)
     626        $$(call MSG_FETCH_DL,$(target),$(source),$(out))
    627627        @## @todo do fancy stuff like download continuation.
    628628        $$(QUIET)$$(RM) -f $(out) $(out).md5
     
    635635# Intermediate goal for making sure the md5 and size matches. it will (re) fetch the archive if necessary.
    636636$(out).checked_$(md5)_$(size): $($(target)_$(srcname)_FETCH_DEPEND_) | $($(target)_$(srcname)_FETCH_DEPORD_)
    637         $$(call MSG_L1,Checking $(out),($(source))...)
     637        $$(call MSG_FETCH_CHK,$(target),$(source),$(out))
    638638        $$(QUIET)$$(RM) -f $$@ $(out).md5
    639639        @# creates the .md5 we pass to md5sum.
     
    658658$(out) $($(target)_$(srcname)_UNPACK_OUTPUT_): $($(target)_$(srcname)_UNPACK_DEPEND_) \
    659659                | $($(target)_$(srcname)_UNPACK_DEPORD_) $(archive).checked_$(md5)_$(size)
    660         $$(call MSG_L1,Unpacking $(archive),into $(inst)...)
     660        $$(call MSG_FETCH_UP,$(target),$(archive),$(inst))
    661661        $$(QUIET)$$(RM) -f $(out)
    662662        @# if the source archive doesn't exist fetch it (can have been deleted to save space).
     
    854854
    855855$(out).lst: $(_TARGET_$(target)_UNPACKED) | $(call DIRDEP,$(inst))
    856         $$(call MSG_L1,Successfully fetched $(target))
     856        $$(call MSG_FETCH_OK,$(target))
    857857        $$(QUIET)$$(RM) -f $$@ $$@.tmp
    858858        $$(QUIET2)$$(APPEND) $$@.tmp "$(notdir $(out))"
     
    861861
    862862$(out)_unfetched:
    863         $$(call MSG_L1,Unfetching $(target)...)
     863        $$(call MSG_UNFETCH,$(target))
    864864        $$(QUIET)$$(RM) -f $$(addprefix $(inst),$$(shell $$(CAT_EXT) $(out).lst 2> /dev/null | $$(SED) -e '/\/$$$$/d'))
    865865        $$(QUIET)$$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist $$(dir $$@) \
     
    870870$(out): $(comp-vars _TARGET_$(target)_DIGEST_PREV,_TARGET_$(target)_DIGEST,FORCE) | $(call DIRDEP,$(inst))
    871871        $$(QUIET)$$(RM) -f $$@
    872         $$(call MSG_L1,$$(if $$(_TARGET_$(target)_DIGEST),$$(if $$(wildcard $(out).lst),Re-fetching,Fetching),Removing) $(target)...)
     872        $$(if $$(_TARGET_$(target)_DIGEST),$$(if $$(wildcard $(out).lst)\
     873                ,$$(call MSG_REFETCH,$(target)),$$(call MSG_FETCH,$(target))),$$(call MSG_UNFETCH,$(target)))
    873874        $$(QUIET)$$(if $$(wildcard $(out).lst      ),$$(MAKE) -f $(MAKEFILE) --no-print-directory $(out)_unfetched)
    874875        $$(QUIET)$$(if  $$(_TARGET_$(target)_DIGEST),$$(MAKE) -f $(MAKEFILE) --no-print-directory $(out).lst,$$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist $$(dir $$@))
     
    978979                | \
    979980                $($(target)_$(source)_DEPORD_)
    980         $$(call MSG_L1,Compiling $(target) - $(source),=> $$@)
     981        $$(call MSG_COMPILE,$(target),$(source),$$@,$(type))
    981982        $$(QUIET)$$(RM) -f $(dep) $(obj) $($(target)_$(source)_OUTPUT_)
    982983        $(custom_pre)
     
    10241025                | \
    10251026                $($(target)_DEPORD_)
    1026         $$(call MSG_L1,Linking $$@)
     1027        $$(call MSG_LINK,$(target),$$@,$(tool_do))
    10271028        $$(QUIET)$$(RM) -f $(dep) $(out) $($(target)_OUTPUT_)
    10281029        $(custom_pre)
     
    10531054define def_link_install_rule
    10541055$(INSTARGET_$(target)) : $(out) | $(call DIRDEP,$(dir $(INSTARGET_$(target))))
    1055         $$(call MSG_L1,Installing $(target) => $$@)
     1056        $$(call MSG_INST_TRG,$(target),$(out),$$@)
    10561057        $$(QUIET)$$(INSTALL) $$(if $(mode),-m $(mode)) $(out) $$@
    10571058
     
    12631264
    12641265# Process libraries
     1266tool_do := LINK_LIBRARY
    12651267mode := 0644
    12661268$(foreach target, $(LIBRARIES) $(LIBRARIES.$(BUILD_TARGET)) $(LIBRARIES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), $(eval $(value def_lib)))
     
    16301632# the install rule
    16311633$(insdst) : $(srcsrc) | $(call DIRDEP,$(dir $(insdst)))
    1632         $$(call MSG_L1,Installing $(insdst),(<= $(srcsrc)))
     1634        $$(call MSG_INST_FILE,$(srcsrc),$(insdst))
    16331635        $$(QUIET)$$(if $$(filter $(INSTALL),$(inscmd)),,$$(RM) -f $$@)
    16341636        $$(QUIET)$(inscmd)
     
    17521754# the install rule
    17531755$(insdst) : | $(call DIRDEP,$(dir $(insdst)))
    1754         $$(call MSG_L1,Installing symlink $(insdst),pointing to $(symdst))
     1756        $$(call MSG_INST_SYM,$(insdst),$(symdst))
    17551757        $$(QUIET)$$(RM) -f $$@
    17561758        $$(QUIET)$$(LN_SYMLINK) $(symdst) $(insdst)
     
    18021804# the install rule
    18031805$(insdst):
    1804         $$(call MSG_L1,Installing directory $(insdst))
     1806        $$(call MSG_INST_DIR,$(insdst))
    18051807        $$(QUIET)$$(INSTALL) -d \
    18061808                $(if $(uid),-o $(uid))\
     
    19171919define def_mkdir_rule
    19181920$(directory):
    1919         $$(call MSG_L2,Creating directory $$@)
     1921        $$(call MSG_MKDIR,$$@)
    19201922        $$(QUIET)$$(MKDIR) -p $$@
    19211923endef
     
    19281930#
    19291931do-nothing:
    1930         $(call MSG_L1,Did nothing in $(CURDIR))
     1932        $(call MSG_NOTHING)
    19311933
    19321934
     
    19351937#
    19361938do-clean:
    1937         $(call MSG_L1,Cleaning...)
     1939        $(call MSG_CLEAN)
    19381940        $(QUIET)$(RM) -f $(_OUT_FILES) $(_OBJS) $(_DEPFILES) $(_DEPFILES_INCLUDED) $(_CLEAN_FILES) $(OTHER_CLEAN)
    19391941
     
    20432045.PHONY: pass_$(pass)_order
    20442046pass_$(pass)_order: $(pass_prev)
    2045         $$(call MSG_L1,Pass - $$(if $$(PASS_$(PASS)),$$(PASS_$(PASS)),$(pass)))
     2047        $$(call MSG_PASS,$$(if $$(PASS_$(PASS)),$$(PASS_$(PASS)),$(pass)))
    20462048        + $$(QUIET)$$(MAKE) -f $$(MAKEFILE) pass_$(pass)
    20472049else
     
    20492051.PHONY:       pass_$(pass)_order pass_$(pass)_banner
    20502052pass_$(pass)_banner:
    2051         $$(call MSG_L1,Pass - $$(if $$(PASS_$(PASS)),$$(PASS_$(PASS)),$(pass)))
     2053        $$(call MSG_PASS,$$(if $$(PASS_$(PASS)),$$(PASS_$(PASS)),$(pass)))
    20522054pass_$(pass)_order: \
    20532055                $(pass_prev) \
Note: See TracChangeset for help on using the changeset viewer.