summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2014-10-31 03:08:23 +0000
committerCorey Farrell <git@cfware.com>2014-10-31 03:08:23 +0000
commitb2320497f8f0372e09b544f749978b793cd49e10 (patch)
tree6d46424c67138ab9bd3f6a132aa023de44701b24 /contrib
parent7bd256b711174ee69f2cd123766047627dddf800 (diff)
REF_DEBUG: Install refcounter.py to $(ASTDATADIR)/scripts
This change ensures refcounter.py is installed to a place where it can be found by the Asterisk testsuite if REF_DEBUG is enabled. ASTERISK-24432 #close Reported by: Corey Farrell Review: https://reviewboard.asterisk.org/r/4094/ ........ Merged revisions 426830 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 426831 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 426832 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@426833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib')
-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"