From: Corey Farrell Date: Fri, 31 Oct 2014 03:06:51 +0000 (+0000) Subject: REF_DEBUG: Install refcounter.py to $(ASTDATADIR)/scripts X-Git-Tag: 12.7.0-rc1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e225d6fa8cf5ba3285e615dd967d8146a0608ff0;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@426832 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile b/Makefile index da9e41a623..8657423870 100644 --- a/Makefile +++ b/Makefile @@ -238,7 +238,7 @@ endif _ASTCFLAGS+=$(OPTIONS) MOD_SUBDIRS:=channels pbx apps codecs formats cdr cel bridges funcs tests main res addons $(LOCAL_MOD_SUBDIRS) -OTHER_SUBDIRS:=utils agi +OTHER_SUBDIRS:=utils agi contrib SUBDIRS:=$(OTHER_SUBDIRS) $(MOD_SUBDIRS) SUBDIRS_INSTALL:=$(SUBDIRS:%=%-install) SUBDIRS_CLEAN:=$(SUBDIRS:%=%-clean) diff --git a/contrib/Makefile b/contrib/Makefile new file mode 100644 index 0000000000..2c91b47abf --- /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"