Skip to content

Commit 177c7d3

Browse files
committed
makefile update
1 parent 8ec972d commit 177c7d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ SHELL=/bin/bash
44

55
.DEFAULT_GOAL := patch
66

7+
PKG = snm
78
RE=[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z-]*\)
89
version = $(subst v,,$(shell git describe --tags --abbrev=0))
910
major_ver = $(shell (echo $(version) | sed -e 's#$(RE)#\1#'))
@@ -14,10 +15,10 @@ define release
1415
echo "-- Old Tag: $(version)"
1516
echo "-- New Tag: $(1)"
1617
echo ""
17-
echo ">> Updating Cargo.toml"
18+
echo ">> Updating Cargo.toml"
1819
sed -i -e 's/^version = .*/version = $(1)/g' Cargo.toml
1920
echo ">> Updating Cago.lock"
20-
cargo update
21+
cargo update -p $(PKG)
2122
echo ">> Release: $(1)"
2223
git commit -a -m "Release $(1)"
2324
git tag v$(1) -m "Release $(1)"

0 commit comments

Comments
 (0)