summaryrefslogtreecommitdiffstats
path: root/share/mk/verbose.mk
diff options
context:
space:
mode:
Diffstat (limited to 'share/mk/verbose.mk')
-rw-r--r--share/mk/verbose.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/share/mk/verbose.mk b/share/mk/verbose.mk
new file mode 100644
index 0000000..2cc4450
--- /dev/null
+++ b/share/mk/verbose.mk
@@ -0,0 +1,19 @@
+########################################################################
+# Copyright 2022, Alejandro Colomar <alx@kernel.org>
+# SPDX-License-Identifier: GPL-3.0-or-later
+########################################################################
+
+
+ifndef MAKEFILE_VERBOSE_INCLUDED
+MAKEFILE_VERBOSE_INCLUDED := 1
+
+
+ifdef V
+HIDE_ERR :=
+else
+HIDE_ERR := 2>/dev/null
+.SILENT:
+endif
+
+
+endif # include guard