chirpstack/api/rust/Makefile

21 lines
418 B
Makefile
Raw Normal View History

2022-04-06 20:18:32 +00:00
.PHONY: proto version test
all: proto version test
proto:
rm -rf proto
mkdir -p proto/chirpstack
cp -r ../proto/* proto/chirpstack
mkdir -p proto/google/google/api
cp /googleapis/google/api/annotations.proto proto/google/google/api
cp /googleapis/google/api/http.proto proto/google/google/api
version:
sed -i 's/^version.*/version = "$(VERSION)"/g' ./Cargo.toml
test:
cargo test
publish:
cargo publish