Skip to content

Commit 9639d27

Browse files
authored
Merge pull request #7 from JaySon-Huang/master
Fix Makefile
2 parents 73d0a3e + 7a2e468 commit 9639d27

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
pes_parent_dir:=$(shell pwd)/$(lastword $(MAKEFILE_LIST))
22
cur_makefile_path := $(shell dirname $(pes_parent_dir))
33

4-
all: build build-example target/tikv-example
4+
all: build target/tikv-example
55

66
build: pre-build target/debug/libtikv_client.a
77

88
release: pre-build target/release/libtikv_client.a
99

10-
pre-build: target/tikv_client_glue.cc include/tikv_client_glue.h
11-
mkdir target
10+
.PHONY: directories
11+
12+
directories:
13+
mkdir -p target
14+
15+
pre-build: directories target/tikv_client_glue.cc include/tikv_client_glue.h
1216

1317
clean:
1418
cargo clean

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This client is still in the stage of prove-of-concept and under heavy developmen
1010
## Build
1111

1212
```bash
13+
# cxxbridge-cmd 1.0.18 requires rustc 1.48+ and c++11 or newer
1314
cargo install cxxbridge-cmd --force --version 1.0.18
1415
make
1516
```

0 commit comments

Comments
 (0)