summaryrefslogtreecommitdiff
path: root/contrib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/Makefile')
-rw-r--r--contrib/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/contrib/Makefile b/contrib/Makefile
new file mode 100644
index 000000000..2c91b47ab
--- /dev/null
+++ b/contrib/Makefile
@@ -0,0 +1,29 @@
+#
+# Asterisk -- A telephony toolkit for Linux.
+#
+# Contrib scripts
+#
+# Copyright (C) 1999-2014, Digium, Inc.
+#
+# This program is free software, distributed under the terms of
+# the GNU General Public License
+#
+
+ASTTOPDIR?=..
+-include $(ASTTOPDIR)/menuselect.makeopts
+
+.PHONY: all clean install uninstall
+
+all:
+clean:
+
+include $(ASTTOPDIR)/Makefile.rules
+
+install:
+ if [ -n "$(findstring REF_DEBUG,$(MENUSELECT_CFLAGS))" ]; then \
+ $(INSTALL) -d "$(DESTDIR)$(ASTDATADIR)/scripts"; \
+ $(INSTALL) -m 755 scripts/refcounter.py "$(DESTDIR)$(ASTDATADIR)/scripts/refcounter.py"; \
+ fi
+
+uninstall:
+ rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/refcounter.py"