X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/196ad55bd2bdad8c5c86249afd4b1cec04855d35..fc91d8b69ab8294956ce45efcbfd7daac6a8603b:/include/prereq.mk 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: