mirror of
https://github.com/lise-henry/crowbook
synced 2024-06-01 22:16:30 +02:00
added Makefile so it is possible to make checkinstall and generate .deb and .rpm
This commit is contained in:
parent
2563d997c3
commit
b00774ca50
|
@ -0,0 +1,18 @@
|
|||
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)
|
Loading…
Reference in New Issue