mirror of
https://github.com/lise-henry/crowbook
synced 2024-09-18 13:21:33 +02:00
19 lines
350 B
Makefile
19 lines
350 B
Makefile
|
INSTALL_DIR = /usr/bin/
|
||
|
BINARYNAME = crowbook
|
||
|
BINARY = target/release/$(BINARYNAME)
|
||
|
|
||
|
default: $(BINARY)
|
||
|
|
||
|
clean:
|
||
|
cargo clean
|
||
|
|
||
|
$(BINARY): src/lib/lib*.rs src/bin/*.rs Cargo.toml
|
||
|
cargo build --release
|
||
|
|
||
|
install: $(BINARY)
|
||
|
install -d $(DESTDIR)$(INSTALL_DIR)
|
||
|
install $(BINARY) $(DESTDIR)$(INSTALL_DIR)
|
||
|
|
||
|
uninstall:
|
||
|
rm $(DESTDIR)/usr/bin/$(BINARYNAME)
|