-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.gnuplot
42 lines (31 loc) · 1.14 KB
/
Makefile.gnuplot
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
include config/base.config
####
GNUPLOTVER = 6.0.1
GNUPLOT = gnuplot-${GNUPLOTVER}
GNUPLOTTAR = ${GNUPLOT}.tar.gz
PFLAGS =
CONFFLAGS = --prefix=${NLYTIQ_INST_PATH} --disable-silent-rules \
--enable-stats \
--enable-backwards-compatibility \
--with-readline=gnu \
--with-gd=/usr/lib/x86_64-linux-gnu/ \
--with-pdf=/usr/lib/x86_64-linux-gnu/ \
--with-row-help --without-x --without-qt
DIR = $(shell pwd)/${GNUPLOT}
# ${_EPF_} contains the front matter for configure after the include below
include config/configure.prefix.flag.config
#--------------------------------------------------------------------------#
all: install-gnuplot
clean: clean-gnuplot
configure-gnuplot: sources/${GNUPLOT}.tar.gz
tar -zxvf sources/${GNUPLOTTAR}
cd ${DIR} ; ${_EPF_} ./configure ${CONFFLAGS}
touch configure-gnuplot
make-gnuplot: configure-gnuplot
cd ${DIR} ; export LD_LIBRARY_PATH=${DIR} ; make -j${NCPU}
touch make-gnuplot
install-gnuplot: make-gnuplot
cd ${DIR} ; export LD_LIBRARY_PATH=${DIR} ; make install
touch install-gnuplot
clean-gnuplot:
rm -rf ${DIR} make-gnuplot configure-gnuplot install-gnuplot ${DIR}