Simplify the "is $bindir in $PATH" test
authorIan Lynagh <igloo@earth.li>
Sat, 11 Oct 2008 19:10:08 +0000 (19:10 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 11 Oct 2008 19:10:08 +0000 (19:10 +0000)
distrib/Makefile

index dd067b2..5dd230b 100644 (file)
@@ -38,7 +38,7 @@ install :: postinstall denounce
 
 # Look to see if $(bindir) is in $(PATH). Assumes there are no funky
 # characters.
-GREPPED_PATH=$(shell echo "$(PATH)" | grep "\(^\|:\)$(bindir)\(:\|$$\)")
+GREPPED_PATH=$(shell echo ":$(PATH):" | grep ":$(bindir):")
 
 denounce:
        @echo