Add a requireheader for squid, should fix it (#2205)
authorFlorian Fainelli <florian@openwrt.org>
Sun, 12 Aug 2007 11:53:23 +0000 (11:53 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 12 Aug 2007 11:53:23 +0000 (11:53 +0000)
SVN-Revision: 8404

include/prereq.mk

index 660f67c..8e5490c 100644 (file)
@@ -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: