update rslib version automatically
This commit is contained in:
parent
4c8ceeb809
commit
fb8f753d2d
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ BUILDFLAGS := --release --strip
|
||||
RUNFLAGS :=
|
||||
CHECKABLE_PY := pylib qt
|
||||
CHECKABLE_RS := rslib
|
||||
DEVEL := rspy pylib qt
|
||||
DEVEL := rslib rspy pylib qt
|
||||
|
||||
.PHONY: all
|
||||
all: run
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "anki"
|
||||
version = "0.1.0"
|
||||
version = "2.1.20" # automatically updated
|
||||
edition = "2018"
|
||||
authors = ["Ankitects Pty Ltd and contributors"]
|
||||
license = "AGPL-3.0-or-later"
|
||||
|
@ -6,7 +6,7 @@ MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
$(shell mkdir -p .build)
|
||||
|
||||
.PHONY: all check fix clean
|
||||
.PHONY: all check fix clean develop
|
||||
|
||||
all: check
|
||||
|
||||
@ -18,6 +18,8 @@ fix:
|
||||
clean:
|
||||
rm -rf .build target
|
||||
|
||||
develop: .build/vernum
|
||||
|
||||
PROTO_SOURCE := $(wildcard ../proto/*.proto)
|
||||
RS_SOURCE := $(wildcard src/*)
|
||||
ALL_SOURCE := $(RS_SOURCE) $(PROTO_SOURCE)
|
||||
@ -38,3 +40,9 @@ RUST_TOOLCHAIN := $(shell cat rust-toolchain)
|
||||
cargo fmt -- --check
|
||||
cargo clippy -- -D warnings
|
||||
@touch $@
|
||||
|
||||
VER := $(shell cat ../meta/version)
|
||||
.build/vernum: ../meta/version
|
||||
sed -i.bak 's/.*automatically updated.*/version = "$(VER)" # automatically updated/' Cargo.toml
|
||||
rm Cargo.toml.bak
|
||||
@touch $@
|
||||
|
Loading…
Reference in New Issue
Block a user