summaryrefslogtreecommitdiff
path: root/tools/build/Makefile.include
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/Makefile.include')
-rw-r--r--tools/build/Makefile.include20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/build/Makefile.include b/tools/build/Makefile.include
new file mode 100644
index 000000000000..0e4de83400ac
--- /dev/null
+++ b/tools/build/Makefile.include
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: GPL-2.0-only
+build := -f $(srctree)/tools/build/Makefile.build dir=. obj
+
+# More than just $(Q), we sometimes want to suppress all command output from a
+# recursive make -- even the 'up to date' printout.
+ifeq ($(V),1)
+ Q ?=
+ SILENT_MAKE = +$(Q)$(MAKE)
+else
+ Q ?= @
+ SILENT_MAKE = +$(Q)$(MAKE) --silent
+endif
+
+fixdep:
+ $(SILENT_MAKE) -C $(srctree)/tools/build CFLAGS= LDFLAGS= $(OUTPUT)fixdep
+
+fixdep-clean:
+ $(Q)$(MAKE) -C $(srctree)/tools/build clean
+
+.PHONY: fixdep