DISA fix, makefile fix (bug #3049)
[asterisk/asterisk.git] / utils / Makefile
index dd9546f..e8a5602 100755 (executable)
@@ -16,11 +16,11 @@ TARGET+=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else if [ -f
 all: depend $(TARGET)
 
 install:
-       if [ "$(TARGET)" != "none" ]; then \
-               for x in $(TARGET); do \
+       for x in $(TARGET); do \
+               if [ "$$x" != "none" ]; then \
                        install -m 755 $$x $(DESTDIR)$(ASTSBINDIR)/astman; \
-               done ; \
-       fi
+               fi; \
+       done 
 
 none: