forked from mirror/ledisdb
update build
This commit is contained in:
parent
efa8e850f5
commit
889148a27a
4
Makefile
4
Makefile
|
@ -1,9 +1,5 @@
|
|||
$(shell ./bootstrap.sh)
|
||||
|
||||
$(shell ./build_config.sh build_config.mk ./)
|
||||
|
||||
include build_config.mk
|
||||
|
||||
all: build
|
||||
|
||||
build:
|
||||
|
|
10
README.md
10
README.md
|
@ -26,13 +26,13 @@ Create a workspace and checkout ledisdb source
|
|||
|
||||
cd src/github.com/siddontang/ledisdb
|
||||
|
||||
make
|
||||
source dev.sh && make
|
||||
|
||||
## LevelDB support
|
||||
|
||||
+ Install leveldb and snappy.
|
||||
|
||||
LedisDB supplies a simple shell to install leveldb and snappy:
|
||||
LedisDB supplies a simple script to install leveldb and snappy:
|
||||
|
||||
sh build_leveldb.sh
|
||||
|
||||
|
@ -42,17 +42,17 @@ Create a workspace and checkout ledisdb source
|
|||
|
||||
+ Set LEVELDB_DIR and SNAPPY_DIR to the actual install path in dev.sh.
|
||||
|
||||
+ ```make```
|
||||
+ ```source dev.sh && make```
|
||||
|
||||
## RocksDB support
|
||||
|
||||
+ Install rocksdb and snappy first.
|
||||
|
||||
LedisDB has not supplied a simple shell to install, maybe it will later.
|
||||
LedisDB has not supplied a simple script to install, maybe it will later.
|
||||
|
||||
+ Set ROCKSDB_DIR and SNAPPY_DIR to the actual install path in dev.sh.
|
||||
|
||||
+ ```make```
|
||||
+ ```source dev.sh && make```
|
||||
|
||||
## Choose store database
|
||||
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
OUTPUT=$1
|
||||
PREFIX=$2
|
||||
if test -z "$OUTPUT" || test -z "$PREFIX"; then
|
||||
echo "usage: $0 <output-filename> <directory_prefix>" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Delete existing output, if it exists
|
||||
rm -f $OUTPUT
|
||||
touch $OUTPUT
|
||||
|
||||
source ./dev.sh
|
||||
|
||||
echo "GO_BUILD_TAGS=$GO_BUILD_TAGS" >> $OUTPUT
|
Loading…
Reference in New Issue