2016-09-22 16:03:23 +02:00
|
|
|
VER=$(shell grep version Cargo.toml | head -n1 | grep -Eow '".+"' | sed 's/"//g')
|
|
|
|
|
2016-09-18 22:42:11 +02:00
|
|
|
debug: src/* Cargo.toml
|
|
|
|
@cargo build
|
|
|
|
|
|
|
|
release: src/* Cargo.toml
|
|
|
|
@cargo build --release
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@cargo clean
|
2016-09-23 22:06:47 +02:00
|
|
|
|
2016-10-26 22:29:20 +02:00
|
|
|
test:
|
|
|
|
@cargo test
|
|
|
|
|
2016-10-29 19:08:55 +02:00
|
|
|
doc: doc/watchexec.1.ronn
|
|
|
|
@ronn --roff doc/watchexec.1.ronn
|
|
|
|
|
2016-09-23 22:06:47 +02:00
|
|
|
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
|