watchexec/Makefile

31 lines
515 B
Makefile
Raw Normal View History

2017-02-07 00:15:51 +01:00
LATEST_TAG=$(shell git tag | tail -n1)
2016-09-22 16:03:23 +02:00
.PHONY: doc test
2016-10-29 19:12:38 +02:00
2016-09-18 22:42:11 +02:00
debug: src/* Cargo.toml
2017-02-07 16:30:47 +01:00
@cargo build
2016-09-18 22:42:11 +02:00
release: src/* Cargo.toml
@cargo build --release --locked
2016-09-18 22:42:11 +02:00
clean:
2017-02-07 16:30:47 +01:00
@cargo clean
2016-09-23 22:06:47 +02:00
2016-10-26 22:29:20 +02:00
test:
2017-02-07 16:30:47 +01:00
@cargo test
2016-10-26 22:29:20 +02:00
2016-10-29 19:08:55 +02:00
doc: doc/watchexec.1.ronn
2017-02-07 16:30:47 +01:00
@ronn doc/watchexec.1.ronn
2016-10-29 19:08:55 +02:00
2017-02-07 00:15:51 +01:00
cargo-release:
2017-02-07 16:30:47 +01:00
@cargo publish
2017-02-07 00:15:51 +01:00
homebrew-release:
2017-02-07 16:30:47 +01:00
@brew bump-formula-pr --strict --url="https://github.com/mattgreen/watchexec/archive/$(LATEST_TAG).tar.gz" watchexec
2017-02-07 00:15:51 +01:00
2016-09-23 22:06:47 +02:00
install: release
2017-02-07 16:30:47 +01:00
@cp target/release/watchexec /usr/bin
2016-09-23 22:06:47 +02:00
uninstall:
2017-02-07 16:30:47 +01:00
@rm /usr/bin/watchexec