-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathchoose_mrbuild.mk
More file actions
19 lines (16 loc) · 821 Bytes
/
choose_mrbuild.mk
File metadata and controls
19 lines (16 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use the local mrbuild or the system mrbuild or tell the user how to download
# it
ifneq (,$(wildcard mrbuild/))
MRBUILD_MK=mrbuild
MRBUILD_BIN=mrbuild/bin
else ifneq (,$(wildcard /usr/include/mrbuild/Makefile.common.header))
MRBUILD_MK=/usr/include/mrbuild
MRBUILD_BIN=/usr/bin
else
V := 1.13
SHA512 := 7a1422026cdbe12cea6882c3b76087dcc4c1d258369ec2abb941a779a539253a37850563f801049d570e8ad342722030fd918114388b5155a89644491a221f16
URL := https://github.com/dkogan/mrbuild/archive/refs/tags/v$V.tar.gz
TARGZ := mrbuild-$V.tar.gz
cmd := wget -O $(TARGZ) ${URL} && sha512sum --quiet --strict -c <(echo $(SHA512) $(TARGZ)) && tar xvfz $(TARGZ) && ln -fs mrbuild-$V mrbuild
$(error mrbuild not found. Either 'apt install mrbuild', or if not possible, get it locally like this: '${cmd}')
endif