fixed makefiles
This commit is contained in:
parent
c816c1025e
commit
85891abba0
|
@ -1,15 +1,17 @@
|
||||||
# Must match package name in Cargo.toml
|
# Must match package name in Cargo.toml
|
||||||
PLUGIN_NAME=battery
|
PLUGIN_NAME=battery
|
||||||
|
# `target` or `debug`
|
||||||
|
TYPE=target
|
||||||
|
|
||||||
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
||||||
|
|
||||||
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so
|
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/$(TYPE)/lib$(PLUGIN_NAME).so
|
||||||
cp $(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
@mkdir -p $(dir $@)
|
||||||
|
cp $^ $@
|
||||||
|
|
||||||
$(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so:
|
$(OBJECT_DIR)/$(PLUGIN_NAME)/$(TYPE)/lib$(PLUGIN_NAME).so:
|
||||||
mkdir -p $(OBJECT_DIR)/$(PLUGIN_NAME)
|
@mkdir -p $(dir $@)
|
||||||
cargo build --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
cargo build --release --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
# Must match package name in Cargo.toml
|
# Must match package name in Cargo.toml
|
||||||
PLUGIN_NAME=clock
|
PLUGIN_NAME=clock
|
||||||
|
# `target` or `debug`
|
||||||
|
TYPE=target
|
||||||
|
|
||||||
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
||||||
|
|
||||||
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so
|
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/$(TYPE)/lib$(PLUGIN_NAME).so
|
||||||
cp $(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
@mkdir -p $(dir $@)
|
||||||
|
cp $^ $@
|
||||||
$(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so:
|
|
||||||
mkdir -p $(OBJECT_DIR)/$(PLUGIN_NAME)
|
|
||||||
cargo build --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$(OBJECT_DIR)/$(PLUGIN_NAME)/$(TYPE)/lib$(PLUGIN_NAME).so:
|
||||||
|
@mkdir -p $(dir $@)
|
||||||
|
cargo build --release --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
# Must match package name in Cargo.toml
|
# Must match package name in Cargo.toml
|
||||||
PLUGIN_NAME=counter
|
PLUGIN_NAME=counter
|
||||||
|
# `target` or `debug`
|
||||||
|
TYPE=target
|
||||||
|
|
||||||
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
||||||
|
|
||||||
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so
|
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/$(TYPE)/lib$(PLUGIN_NAME).so
|
||||||
cp $(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
@mkdir -p $(dir $@)
|
||||||
|
cp $^ $@
|
||||||
$(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so:
|
|
||||||
mkdir -p $(OBJECT_DIR)/$(PLUGIN_NAME)
|
|
||||||
cargo build --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$(OBJECT_DIR)/$(PLUGIN_NAME)/$(TYPE)/lib$(PLUGIN_NAME).so:
|
||||||
|
@mkdir -p $(dir $@)
|
||||||
|
cargo build --release --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
# Must match package name in Cargo.toml
|
# Must match package name in Cargo.toml
|
||||||
PLUGIN_NAME=example_rust
|
PLUGIN_NAME=example_rust
|
||||||
|
# `target` or `debug`
|
||||||
|
TYPE=target
|
||||||
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
||||||
|
|
||||||
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so
|
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/$(TYPE)/lib$(PLUGIN_NAME).so
|
||||||
cp $(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
@mkdir -p $(dir $@)
|
||||||
|
cp $^ $@
|
||||||
$(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so:
|
|
||||||
mkdir -p $(OBJECT_DIR)/$(PLUGIN_NAME)
|
|
||||||
cargo build --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$(OBJECT_DIR)/$(PLUGIN_NAME)/$(TYPE)/lib$(PLUGIN_NAME).so:
|
||||||
|
@mkdir -p $(dir $@)
|
||||||
|
cargo build --release --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
||||||
|
|
1
rust-toolchain
Normal file
1
rust-toolchain
Normal file
|
@ -0,0 +1 @@
|
||||||
|
nightly
|
Loading…
Reference in New Issue
Block a user