forked from ideawu/ssdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (39 loc) · 957 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
PREFIX=/usr/local/ssdb
$(shell sh build.sh 1>&2)
include build_config.mk
all:
chmod u+x "${LEVELDB_PATH}/build_detect_platform"
chmod u+x deps/cpy/cpy
chmod u+x tools/ssdb-cli
cd "${LEVELDB_PATH}"; make
cd src/util; make
cd src; make
cd tools; make
install:
mkdir -p ${PREFIX}
mkdir -p ${PREFIX}/_cpy_
mkdir -p ${PREFIX}/deps
mkdir -p ${PREFIX}/var
mkdir -p ${PREFIX}/var_slave
cp ssdb-server ssdb.conf ssdb_slave.conf ${PREFIX}
cp -r api ${PREFIX}
cp -r \
tools/ssdb-bench tools/ssdb-cli \
tools/ssdb-cli.cpy tools/ssdb-dump \
tools/ssdb-repair \
tools/ssdb-ins.sh tools/unittest.php \
${PREFIX}
cp -r deps/cpy ${PREFIX}/deps
chmod ugo+rwx ${PREFIX}
chmod -R ugo+rw ${PREFIX}
rm -f ${PREFIX}/Makefile
clean:
rm -f *.exe.stackdump
rm -rf api/cpy/_cpy_
rm -f api/python/SSDB.pyc
rm -rf db_test
cd deps/cpy; make clean
#cd ${LEVELDB_PATH}; make clean
cd src/util; make clean
cd src; make clean
cd tools; make clean