X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/196ad55bd2bdad8c5c86249afd4b1cec04855d35..2d5866f9d0df476bb3130cfe08f52e0a01937aa0:/include/prereq.mk?ds=sidebyside diff --git a/include/prereq.mk b/include/prereq.mk index 660f67cb1..8e5490ccf 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: