Fix astman build (bug #1930)
authorMark Spencer <markster@digium.com>
Sat, 26 Jun 2004 19:25:39 +0000 (19:25 +0000)
committerMark Spencer <markster@digium.com>
Sat, 26 Jun 2004 19:25:39 +0000 (19:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3321 65c4cc65-6c06-0410-ace0-fbb531ad65f3

astman/Makefile

index d3bf6ea..8a69ee0 100755 (executable)
@@ -8,8 +8,7 @@ ifeq ($(findstring BSD,${OSARCH}),BSD)
 CFLAGS+=-I/usr/local/include -L/usr/local/lib
 endif
 
-TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else echo "none" ; fi)
-TARGET=$(shell if [ -f /usr/local/include/newt.h ]; then echo "astman"; else echo "none" ; fi)
+TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else if [ -f /usr/local/include/newt.h ]; then echo "astman"; else echo "none" ; fi ; fi)
 all: depend $(TARGET)
 
 install: