summaryrefslogtreecommitdiff
path: root/third-party/Makefile.rules
blob: ac4189ac4d89357ad5dbb66744aa8e60bf17714f (plain)
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

ifeq ($(NOISY_BUILD),)
	SUBMAKE?=$(MAKE) --quiet --no-print-directory
    ECHO_PREFIX?=@
    CMD_PREFIX?=@
    QUIET_CONFIGURE=-q
    REALLY_QUIET=&>/dev/null
else
	SUBMAKE?=$(MAKE)
    ECHO_PREFIX?=@\#
    CMD_PREFIX?=
    QUIET_CONFIGURE=
    REALLY_QUIET=
endif

DOWNLOAD :=
DOWNLOAD != which wget 2>/dev/null
DOWNLOAD:=$(if $(DOWNLOAD),$(DOWNLOAD) -O- ,)

ifeq ($(DOWNLOAD),)
DOWNLOAD != which curl 2>/dev/null
DOWNLOAD:=$(if $(DOWNLOAD), $(DOWNLOAD) -L ,)
endif

ifeq ($(DOWNLOAD),)
DOWNLOAD := echo "No download program available" ; exit 1;
endif

export SUBMAKE
export ECHO_PREFIX
export CMD_PREFIX
export QUIET_CONFIGURE
export REALLY_QUIET
export ASTTOPDIR
export ASTSBINDIR
export DESTDIR
export ASTDATADIR