< prev index next >

make/common/MakeBase.gmk

Print this page
*** 1,7 ***
  #
! # Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
  # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  #
  # This code is free software; you can redistribute it and/or modify it
  # under the terms of the GNU General Public License version 2 only, as
  # published by the Free Software Foundation.  Oracle designates this
--- 1,7 ---
  #
! # Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
  # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  #
  # This code is free software; you can redistribute it and/or modify it
  # under the terms of the GNU General Public License version 2 only, as
  # published by the Free Software Foundation.  Oracle designates this

*** 150,10 ***
--- 150,14 ---
                  flock $$(FLOCK) \
                  $$(OUTPUTDIR)/build-profile.log $$(SHELL)
      endif
    endif
  
+   ifneq ($$(findstring $$(LOG_LEVEL), debug trace),)
+     SHELL := $$(SHELL) -x
+   endif
+ 
    ifeq ($$(LOG_LEVEL), trace)
      SHELL_NO_RECURSE := $$(SHELL)
      # Shell redefinition trick inspired by http://www.cmcrossroads.com/ask-mr-make/6535-tracing-rule-execution-in-gnu-make
      # For each target executed, will print
      # Building <TARGET> (from <FIRST PREREQUISITE>) (<ALL NEWER PREREQUISITES> newer)
< prev index next >