Use cargo directly in makefile

This commit is contained in:
Denis Isidoro 2021-04-19 18:07:16 -03:00
parent 1aab69e118
commit 8a0318128f

View file

@ -8,13 +8,11 @@ export NAVI_HOME="$(cd "$(dirname "$0")/.." && pwd)"
source "${NAVI_HOME}/scripts/install"
install() {
"${NAVI_HOME}/scripts/action" release
ln -s "${NAVI_HOME}/target/tar/navi" "${BIN_DIR}/navi"
cargo install --path .
}
uninstall() {
rm -rf "${NAVI_HOME}/target"
rm -f "${BIN_DIR}/navi"
cargo uninstall
}
fix() {