summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-12 11:53:23 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-12 11:53:23 +0000
commit12c03192898a56df8406745a8c7d2fc5f3662184 (patch)
tree254b46de5f535f478b1e52c08c5c9dc33da48908 /include
parent41b0c8fca5dc019f5109ce8e9970515d3e69c3e4 (diff)
Add a requireheader for squid, should fix it (#2205)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8404 3c298f89-4303-0410-b956-a3cf2f4a3e73
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: