|
@@ -179,6 +179,18 @@ build := -f $(srctree)/scripts/Makefile.build obj
|
|
|
# $(Q)$(MAKE) $(modbuiltin)=dir
|
|
|
modbuiltin := -f $(srctree)/scripts/Makefile.modbuiltin obj
|
|
|
|
|
|
+###
|
|
|
+# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.clean obj=
|
|
|
+# Usage:
|
|
|
+# $(Q)$(MAKE) $(clean)=dir
|
|
|
+clean := -f $(srctree)/scripts/Makefile.clean obj
|
|
|
+
|
|
|
+###
|
|
|
+# Shorthand for $(Q)$(MAKE) -rR -f scripts/Makefile.headersinst obj=
|
|
|
+# Usage:
|
|
|
+# $(Q)$(MAKE) $(hdr-inst)=dir
|
|
|
+hdr-inst := -rR -f $(srctree)/scripts/Makefile.headersinst obj
|
|
|
+
|
|
|
# Prefix -I with $(srctree) if it is not an absolute path.
|
|
|
# skip if -I has no parameter
|
|
|
addtree = $(if $(patsubst -I%,%,$(1)), \
|