Skip to content

Commit 20244b3

Browse files
committed
Add Makefile
This commit adds a Makefile based on the one belonging to hammer.rs.
1 parent 7bc1a76 commit 20244b3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
SQLITE3_LIB := $(shell rustc --crate-file-name src/sqlite3/lib.rs --crate-type=rlib)
2+
3+
default: target/$(SQLITE3_LIB)
4+
5+
target:
6+
mkdir -p target
7+
8+
clean:
9+
rm -rf target
10+
11+
target/$(SQLITE3_LIB): target src/sqlite3/lib.rs
12+
rustc src/sqlite3/lib.rs --out-dir target --crate-type=rlib
13+
14+
tests:
15+
rustc --test src/sqlite3/lib.rs --out-dir target -o target/tests
16+
./target/tests
17+
18+
.PHONY: default clean tests

0 commit comments

Comments
 (0)