1
0
Fork 0
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:
Elisabeth Henry 2016-02-28 20:15:24 +01:00
parent 2563d997c3
commit b00774ca50

18
Makefile Normal file
View File

@ -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)