~singpolyma/asterisk

ref: upstream/16.2.1_dfsg asterisk/contrib/Makefile -rw-r--r-- 1.3 KiB
fe6d69c0Stephen Paul Weber import-tar 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# 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:
	$(INSTALL) -d "$(DESTDIR)$(ASTDATADIR)/scripts"
	$(INSTALL) -m 755 scripts/ast_logescalator "$(DESTDIR)$(ASTDATADIR)/scripts/ast_logescalator"
	$(INSTALL) -m 755 scripts/ast_loggrabber "$(DESTDIR)$(ASTDATADIR)/scripts/ast_loggrabber"
	$(INSTALL) -m 755 scripts/ast_coredumper "$(DESTDIR)$(ASTDATADIR)/scripts/ast_coredumper"
	$(INSTALL) -m 755 scripts/refcounter.py "$(DESTDIR)$(ASTDATADIR)/scripts/refcounter.py"
	$(INSTALL) -m 755 scripts/refstats.py "$(DESTDIR)$(ASTDATADIR)/scripts/refstats.py"
	$(INSTALL) -m 755 scripts/reflocks.py "$(DESTDIR)$(ASTDATADIR)/scripts/reflocks.py"

uninstall:
	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/ast_logescalator"
	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/ast_loggrabber"
	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/ast_coredumper"
	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/refcounter.py"
	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/refstats.py"
	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/reflocks.py"