2024-06-16 17:02:15 +00:00
|
|
|
# Must match package name in Cargo.toml
|
|
|
|
PLUGIN_NAME=battery
|
2024-06-20 09:06:18 +00:00
|
|
|
# `release` or `debug`
|
|
|
|
TYPE=release
|
2024-06-16 17:02:15 +00:00
|
|
|
|
|
|
|
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
|
|
|
|
2024-06-17 09:16:09 +00:00
|
|
|
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/$(TYPE)/lib$(PLUGIN_NAME).so
|
|
|
|
@mkdir -p $(dir $@)
|
|
|
|
cp $^ $@
|
2024-06-16 17:02:15 +00:00
|
|
|
|
2024-06-17 09:16:09 +00:00
|
|
|
$(OBJECT_DIR)/$(PLUGIN_NAME)/$(TYPE)/lib$(PLUGIN_NAME).so:
|
|
|
|
@mkdir -p $(dir $@)
|
|
|
|
cargo build --release --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
2024-06-16 17:02:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
|