Ignore:
Timestamp:
Dec 10, 2006, 8:16:02 AM (19 years ago)
Author:
bird
Message:

Implemented KBUILD_QUIET and KBUILD_VERBOSE={1|full} (was BUILD_QUIET, BUILD_VERBOSE, BUILD_DEBUG).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r693 r696  
    436436LN_SYMLINK  := $(LN) -s
    437437
    438 
    439 
    440 #
    441 # Message macros.
    442 #
    443 
    444 ifndef BUILD_QUIET
    445 ifdef BUILD_DEBUG
    446 BUILD_VERBOSE := 9
    447 endif
    448 MSG_L1          = @$(ECHO) "kBuild: $1"
    449 ifdef BUILD_VERBOSE
    450 MSG_L2          = @$(ECHO) "kBuild: $1"
    451 QUIET           :=
    452 else
    453 QUIET           := @
    454 MSG_L2          =
    455 endif
    456 ifdef BUILD_DEBUG
    457 MSG_L3      = @$(ECHO) "kBuild: $1"
    458 else
    459 MSG_L3      =
    460 endif
    461 else
    462 QUIET           :=
    463 MSG_L1          =
    464 MSG_L2      =
    465 MSG_L3      =
    466 endif
    467 
    468438## ABSPATH - make paths absolute.
    469439# This implementation is clumsy and doesn't resolve '..' and '.' components.
    470440#
    471441# @param        $1      The paths to make absolute.
     442# @obsolete Use the GNU make function $(abspath) directly now.
    472443ABSPATH = $(abspath $(1))
    473444
     
    705676
    706677
     678#
     679# Message macros.
     680#
     681# This is done after including Config.kmk as to allow for
     682# KBUILD_QUIET and KBUILD_VERBOSE to be configurable.
     683#
     684ifdef KBUILD_QUIET
     685 # minimal output.
     686 QUIET := @
     687 QUIET2:= @
     688 MSG_L1 =
     689 MSG_L2 =
     690 MSG_L3 =
     691else
     692 ifndef KBUILD_VERBOSE
     693  QUIET := @
     694  QUIET2:= @
     695  MSG_L1 = @$(ECHO) "kBuild: $1"
     696  MSG_L2 =
     697  MSG_L3 =
     698 else
     699  # maximal output.
     700  QUIET :=
     701  MSG_L1 = @$(ECHO) "kBuild: $1 $2"
     702  MSG_L2 = @$(ECHO) "kBuild: $1"
     703  ifeq ($(KBUILD_VERBOSE),full)
     704   QUIET2:= @
     705  else
     706   QUIET2:=
     707  endif
     708 endif
     709endif
     710
    707711# end-of-file-content
    708712__header_kmk__ := 1
Note: See TracChangeset for help on using the changeset viewer.