forked from quil-lang/magicl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (24 loc) · 834 Bytes
/
Makefile
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
SBCL_BIN=sbcl
SBCL=$(SBCL_BIN) --dynamic-space-size 4096 --noinform --no-userinit --no-sysinit --non-interactive
QUICKLISP_HOME=$(HOME)/quicklisp
QUICKLISP_SETUP=$(QUICKLISP_HOME)/setup.lisp
QUICKLISP=$(SBCL) --load $(QUICKLISP_HOME)/setup.lisp \
--eval '(push (truename ".") asdf:*central-registry*)'
UNAME_S=$(shell uname -s)
all: test
install-test-deps:
ifeq ($(UNAME_S),Linux)
ifeq ($(shell sed -n "s/^ID=//p" /etc/os-release),debian)
apt-get install -y libblas-dev libffi-dev liblapack-dev
else ifneq (,$(wildcard /etc/redhat-release))
yum install -y blas-devel libffi-devel lapack-devel
else
echo "Only Debian and RedHat based platforms are supported"
endif
else
echo "Non-Linux-based platforms unsupported"
endif
test:
$(QUICKLISP) \
--eval "(ql:quickload :magicl-tests)" \
--eval '(asdf:test-system :magicl)'