aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/prereq.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/prereq.mk b/include/prereq.mk
index 660f67cb1b..8e5490ccff 100644
--- a/include/prereq.mk
+++ b/include/prereq.mk
@@ -47,4 +47,12 @@ define RequireCommand
$$(eval $$(call Require,$(1),$(2)))
endef
+define RequireHeader
+ define Require/$(1)
+ [ -e "$(1)" ]
+ endef
+
+ $$(eval $$(call Require,$(1),$(2)))
+endef
+
.NOTPARALLEL: