Merge "chan_sip: Address runaway when realtime peers subscribe to mailboxes"
[asterisk/asterisk.git] / third-party / Makefile.rules
1
2 ifeq ($(NOISY_BUILD),)
3 SUBMAKE?=$(MAKE) --quiet --no-print-directory
4 ECHO_PREFIX?=@
5 CMD_PREFIX?=@
6 QUIET_CONFIGURE=-q
7 REALLY_QUIET=&>/dev/null
8 else
9 SUBMAKE?=$(MAKE)
10 ECHO_PREFIX?=@\#
11 CMD_PREFIX?=
12 QUIET_CONFIGURE=
13 REALLY_QUIET=
14 endif
15
16 DOWNLOAD := $(shell which wget 2>/dev/null)
17 DOWNLOAD := $(if $(DOWNLOAD),$(DOWNLOAD) -O- ,)
18
19 ifeq ($(DOWNLOAD),)
20 DOWNLOAD := $(shell which curl 2>/dev/null)
21 DOWNLOAD := $(if $(DOWNLOAD), $(DOWNLOAD) -L ,)
22 endif
23
24 ifeq ($(DOWNLOAD),)
25 DOWNLOAD := echo "No download program available" ; exit 1;
26 endif
27
28 export SUBMAKE
29 export ECHO_PREFIX
30 export CMD_PREFIX
31 export QUIET_CONFIGURE
32 export REALLY_QUIET
33 export ASTTOPDIR
34 export ASTSBINDIR
35 export DESTDIR
36 export ASTDATADIR