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 :=
|
RUNFLAGS :=
|
||||||
CHECKABLE_PY := pylib qt
|
CHECKABLE_PY := pylib qt
|
||||||
CHECKABLE_RS := rslib
|
CHECKABLE_RS := rslib
|
||||||
DEVEL := rspy pylib qt
|
DEVEL := rslib rspy pylib qt
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: run
|
all: run
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "anki"
|
name = "anki"
|
||||||
version = "0.1.0"
|
version = "2.1.20" # automatically updated
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
authors = ["Ankitects Pty Ltd and contributors"]
|
authors = ["Ankitects Pty Ltd and contributors"]
|
||||||
license = "AGPL-3.0-or-later"
|
license = "AGPL-3.0-or-later"
|
||||||
|
@ -6,7 +6,7 @@ MAKEFLAGS += --no-builtin-rules
|
|||||||
|
|
||||||
$(shell mkdir -p .build)
|
$(shell mkdir -p .build)
|
||||||
|
|
||||||
.PHONY: all check fix clean
|
.PHONY: all check fix clean develop
|
||||||
|
|
||||||
all: check
|
all: check
|
||||||
|
|
||||||
@ -18,6 +18,8 @@ fix:
|
|||||||
clean:
|
clean:
|
||||||
rm -rf .build target
|
rm -rf .build target
|
||||||
|
|
||||||
|
develop: .build/vernum
|
||||||
|
|
||||||
PROTO_SOURCE := $(wildcard ../proto/*.proto)
|
PROTO_SOURCE := $(wildcard ../proto/*.proto)
|
||||||
RS_SOURCE := $(wildcard src/*)
|
RS_SOURCE := $(wildcard src/*)
|
||||||
ALL_SOURCE := $(RS_SOURCE) $(PROTO_SOURCE)
|
ALL_SOURCE := $(RS_SOURCE) $(PROTO_SOURCE)
|
||||||
@ -38,3 +40,9 @@ RUST_TOOLCHAIN := $(shell cat rust-toolchain)
|
|||||||
cargo fmt -- --check
|
cargo fmt -- --check
|
||||||
cargo clippy -- -D warnings
|
cargo clippy -- -D warnings
|
||||||
@touch $@
|
@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