mirror of
https://github.com/watchexec/watchexec.git
synced 2024-10-06 18:03:54 +02:00
29 lines
553 B
Makefile
29 lines
553 B
Makefile
VER=$(shell grep version Cargo.toml | head -n1 | grep -Eow '".+"' | sed 's/"//g')
|
|
|
|
.PHONY: doc
|
|
|
|
debug: src/* Cargo.toml
|
|
@cargo build
|
|
|
|
release: src/* Cargo.toml
|
|
@cargo build --release
|
|
|
|
clean:
|
|
@cargo clean
|
|
|
|
test:
|
|
@cargo test
|
|
|
|
doc: doc/watchexec.1.ronn
|
|
@ronn --roff doc/watchexec.1.ronn
|
|
|
|
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
|