summaryrefslogtreecommitdiff
path: root/astman/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'astman/Makefile')
-rwxr-xr-xastman/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/astman/Makefile b/astman/Makefile
index f932ffb9f..106affcd8 100755
--- a/astman/Makefile
+++ b/astman/Makefile
@@ -1,15 +1,17 @@
-TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; fi)
+TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else echo "none" ; fi)
all: $(TARGET)
install:
- mkdir -p /usr/sbin
- if [ "$(TARGET)" != "" ]; then \
+ if [ "$(TARGET)" != "none" ]; then \
for x in $(TARGET); do \
- install -m 755 $$x /usr/sbin/astman; \
+ install -m 755 $$x $(ASTSBINDIR)/astman; \
done ; \
fi
+none:
+ @echo Not building the Asterisk Manager "astman"
+
clean:
rm -f *.o astman