Add install/uninstall Makefile targets

This commit is contained in:
Matt Green 2016-09-23 14:06:47 -06:00
parent 6072b353b9
commit d02ecdc46f
1 changed files with 10 additions and 4 deletions

View File

@ -6,9 +6,15 @@ debug: src/* Cargo.toml
release: src/* Cargo.toml
@cargo build --release
dist: release
@tar -cz -C target/release -f target/release/watchexec_osx_$(VER).tar.gz watchexec
@shasum -a 256 target/release/watchexec_osx_$(VER).tar.gz
clean:
@cargo clean
install: release
@cp target/release/watchexec /usr/bin
uninstall:
@rm /usr/bin/watchexec
dist-osx: release
@tar -cz -C target/release -f target/release/watchexec_osx_$(VER).tar.gz watchexec
@shasum -a 256 target/release/watchexec_osx_$(VER).tar.gz