blob: 848e4e944bf8794f709cd1d9397b0535e7297b38 [file] [log] [blame]
Chris Kay1870c722024-05-02 17:52:37 +00001#
2# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifndef common-mk
8 common-mk := $(lastword $(MAKEFILE_LIST))
9
10 include $(dir $(common-mk))utilities.mk
11
Boyan Karatotevebbb9ac2024-10-10 13:37:00 +010012 silent := $(call bool,$(findstring s,$(firstword ~$(MAKEFLAGS))))
13 verbose := $(if $(silent),,$(call bool,$(V)))
Chris Kay1870c722024-05-02 17:52:37 +000014
Boyan Karatotevebbb9ac2024-10-10 13:37:00 +010015 s := @$(if $(or $(verbose),$(silent)),: )
16 q := $(if $(verbose),,@)
Chris Kay1870c722024-05-02 17:52:37 +000017endif