aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-19 14:53:56 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-19 14:53:56 +0000
commit539431015db3525807f77ed9cd6eaabc51df2eeb (patch)
treed414ae535f98d8ffb40e4716ab8b7cb003141c0b /Makefile
parent98971f1ec18003b5eec192b534956f04e7be6041 (diff)
make version-testing and echo constructs more shell-portable
add proper attribution to vercomp.c git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5736 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile27
1 files changed, 15 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index ca429fbfa..5777b5991 100755
--- a/Makefile
+++ b/Makefile
@@ -357,22 +357,25 @@ ast_expr.a: $(FLEXOBJS)
ar r $@ $(FLEXOBJS)
ranlib $@
+ifeq ($(BISONVER_GE_1_85),false)
.y.c:
- @if (($(BISONVER_GE_1_85) = false)); then \
- echo ================================================================================= ;\
- echo NOTE: You may have trouble if you do not have bison-1.85 or higher installed! ;\
- echo NOTE: You can pick up a copy at: http://ftp.gnu.org/ or its mirrors ;\
- echo NOTE: You have: $(BISONVER) ;\
- echo ================================================================================; \
- fi
+ @echo "=================================================================================" ;\
+ echo "NOTE: You may have trouble if you do not have bison-1.85 or higher installed!" ;\
+ echo "NOTE: You can pick up a copy at: http://ftp.gnu.org/ or its mirrors" ;\
+ echo "NOTE: You have: $(BISONVER)" ;\
+ echo "================================================================================" ;\
bison -v -d --name-prefix=ast_yy $< -o $@
+else
+.y.c:
+ bison -v -d --name-prefix=ast_yy $< -o $@
+endif
ast_expr.o:: ast_expr.c
- @echo ================================================================================= ;\
- echo NOTE: Using older version of expression parser. To use the newer version, ;\
- echo NOTE: upgrade to flex 2.5.31 or higher, which can be found at ;\
- echo NOTE: http://sourceforge.net/project/showfiles.php?group_id=72099 ;\
- echo ================================================================================= ;\
+ @echo "=================================================================================" ;\
+ echo "NOTE: Using older version of expression parser. To use the newer version," ;\
+ echo "NOTE: upgrade to flex 2.5.31 or higher, which can be found at" ;\
+ echo "NOTE: http://sourceforge.net/project/showfiles.php?group_id=72099" ;\
+ echo "=================================================================================" ;\
ast_expr.o:: ast_expr.c