diff --git a/astman/Makefile b/astman/Makefile index d3bf6ea87a3aeb43a26a80dc87931c77ca7f85b3..8a69ee0c8253214d95335b124681193e6963894f 100755 --- a/astman/Makefile +++ b/astman/Makefile @@ -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: