forked from flybird119/pbx-mon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
22 lines (18 loc) · 807 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: install config script
install:
@/usr/bin/cp -Rf cdr /var
@/usr/bin/chown nginx:pbx /var/cdr
echo -e "->\033[37m install cdr module \033[32m [ OK ] \033[0m"
@/usr/bin/cp -Rf www /var
@/usr/bin/chown nginx:pbx /var/www
echo -e "->\033[37m install web module \033[32m [ OK ] \033[0m"
@/usr/bin/mkdir -p /var/record
@/usr/bin/chown root:pbx /var/record
echo -e "->\033[37m create recording directory \033[32m [ OK ] \033[0m"
@/usr/bin/ln -s /usr/local/freeswitch/bin/fs_cli /usr/bin/fs_cli
@/usr/bin/ln -s /usr/local/freeswitch/bin/freeswitch /usr/bin/freeswitch
echo -e "->\033[37m create freeswitch relevant links \033[32m [ OK ] \033[0m"
config:
$(MAKE) --no-print-directory --quiet -C config
script:
$(MAKE) --no-print-directory --quiet -C script