Rust-Programming-Cookbook/Chapter08/python-to-rust/Makefile

15 wiersze
229 B
Makefile
Czysty Zwykły widok Historia

2017-07-31 06:59:18 +00:00
ifeq ($(shell uname),Darwin)
EXT := dylib
else
EXT := so
endif
all: target/debug/libdouble_input.$(EXT)
python src/main.py
target/debug/libdouble_input.$(EXT): src/lib.rs Cargo.toml
cargo build
clean:
rm -rf target