-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.maxima
48 lines (34 loc) · 1.24 KB
/
Makefile.maxima
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
38
39
40
41
42
43
44
45
46
47
48
include config/base.config
####
maximaVER = 5.47.0
maxima = maxima-${maximaVER}
maximaTAR = ${maxima}.tar.gz
DIR = $(shell pwd)/${maxima}
# ${_EPF_} contains the front matter for configure after the include below
include config/configure.prefix.flag.config
#--------------------------------------------------------------------------#
all: install-quicklisp
clean: clean-maxima
# assume SBCL, as this is available in most distros. You
# might need to build from the latest SBCL source at
# https://sourceforge.net/projects/sbcl/files/sbcl/
configure-maxima: sources/${maximaTAR}
tar -I /usr/bin/zstd -xvf sources/${maximaTAR}
cd ${DIR} ; ${_EPF_} ./configure --prefix=${NLYTIQ_INST_PATH} \
--enable-mathjax \
--enable-sbcl \
--enable-sbcl-exec
touch configure-maxima
make-maxima: configure-maxima
cd ${DIR} ; export LD_LIBRARY_PATH=${DIR} ; make -j${NCPU}
touch make-maxima
install-maxima: make-maxima
cd ${DIR} ; export LD_LIBRARY_PATH=${DIR} ; make install
touch install-maxima
install-quicklisp: install-maxima
# again, assume sbcl
sbcl --load sources/quicklisp.lisp < sources/quicklisp.install
touch install-quicklisp
clean-maxima:
rm -rf ${DIR} make-maxima configure-maxima install-maxima \
${DIR} install-quicklisp