summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/prereq.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/prereq.mk b/include/prereq.mk
index 660f67c..8e5490c 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: