summaryrefslogtreecommitdiff
path: root/include/prereq.mk
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-08-12 11:53:23 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-08-12 11:53:23 +0000
commit0860346ff09bc4310ff9272578d1941a0abf01e4 (patch)
tree38f02b7ed6568d208e8c45b50045738cca0eae77 /include/prereq.mk
parent3ee29a8f6029ea0063eaa234e400b7f96b669258 (diff)
downloadmtk-20170518-0860346ff09bc4310ff9272578d1941a0abf01e4.zip
mtk-20170518-0860346ff09bc4310ff9272578d1941a0abf01e4.tar.gz
mtk-20170518-0860346ff09bc4310ff9272578d1941a0abf01e4.tar.bz2
Add a requireheader for squid, should fix it (#2205)
SVN-Revision: 8404
Diffstat (limited to 'include/prereq.mk')
-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: