-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (28 loc) · 1.06 KB
/
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
# TODO(kakkoyun): DRY this file.
target/static-libs:
@echo "Building static-libs"
./scripts/download_and_build_static_libs.sh
target/debug/deps/libelf.a: target/static-libs
mkdir -p target/debug/deps
cp target/static-libs/libelf.a target/debug/deps/libelf.a
target/release/deps/libelf.a: target/static-libs
mkdir -p target/release/deps
cp target/static-libs/libelf.a target/release/deps/libelf.a
target/debug/deps/libz.a: target/static-libs
mkdir -p target/debug/deps
cp target/static-libs/libz.a target/debug/deps/libz.a
target/release/deps/libz.a: target/static-libs
mkdir -p target/release/deps
cp target/static-libs/libz.a target/release/deps/libz.a
deps: target/debug/deps/libelf.a target/debug/deps/libz.a target/release/deps/libelf.a target/release/deps/libz.a
mkdir -p out/ruby_versions
mkdir -p out/python_versions
.PHONY: build
build: target/debug/deps/libelf.a target/debug/deps/libz.a
cargo build
.PHONY: release-build
release-build: target/release/deps/libelf.a target/release/deps/libz.a
cargo build --release
.PHONY: clean
clean:
rm -rf target