From c96b2fd91825423d3ee1ba55a4e643c0dcdb24dd Mon Sep 17 00:00:00 2001
From: Travis Cross <tc@traviscross.com>
Date: Fri, 19 Aug 2011 01:42:57 +0000
Subject: [PATCH] Fix overzealous grep in build system

This prevented 'make mod_callcenter' from working because the 'all' in
'callcenter' was matching.
---
 src/mod/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mod/Makefile.am b/src/mod/Makefile.am
index 5af782d12d..3ced66b48e 100644
--- a/src/mod/Makefile.am
+++ b/src/mod/Makefile.am
@@ -39,6 +39,6 @@ mod_com_g729-activate:
 	cd $(switch_builddir)/src/mod/codecs/mod_com_g729 && $(MAKE) $(AM_MAKEFLAGS) activate
 
 .DEFAULT:
-	@if test -z "`echo $@ | grep all`"; then  $(MAKE) $(AM_MAKEFLAGS) $@-all ; else echo Unknown target `echo $@ | sed -e 's|-all||'`; exit 1; fi
+	@if test -z "`echo $@ | grep '\-all$$'`"; then  $(MAKE) $(AM_MAKEFLAGS) $@-all ; else echo Unknown target `echo $@ | sed -e 's|-all||'`; exit 1; fi