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

15 wiersze
229 B
Makefile

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