16 lines
466 B
Makefile
16 lines
466 B
Makefile
|
# Must match package name in Cargo.toml
|
||
|
PLUGIN_NAME=example_rust
|
||
|
|
||
|
|
||
|
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
||
|
|
||
|
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/release/lib$(PLUGIN_NAME).so
|
||
|
cp $(OBJECT_DIR)/$(PLUGIN_NAME)/release/lib$(PLUGIN_NAME).so $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
||
|
|
||
|
$(OBJECT_DIR)/$(PLUGIN_NAME)/release/lib$(PLUGIN_NAME).so:
|
||
|
mkdir -p $(OBJECT_DIR)/$(PLUGIN_NAME)
|
||
|
cargo build --release --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
||
|
|
||
|
|
||
|
|