1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-06-16 06:16:14 +02:00
crowbook/Makefile
2019-07-19 03:31:48 +02:00

28 lines
684 B
Makefile

INSTALL_DIR = /usr/bin/
BINARYNAME = crowbook
TARGET = x86_64-unknown-linux-gnu
BINARY = target/$(TARGET)/release/$(BINARYNAME)
PKGNAME= $(BINARYNAME)
MAINTAINER = "√Člisabeth Henry \<liz.henry@ouvaton.org\>"
PKGVERSION = "0.15.0"
PKGLICENSE = "LGPL-2.1+"
default: $(BINARY)
clean:
cargo clean
$(BINARY): src/lib/lib*.rs src/bin/*.rs Cargo.toml
cargo build --release --target=$(TARGET)
package:
checkinstall -D --install=no --pkgname $(PKGNAME) --pkgversion $(PKGVERSION) --pkglicense $(PKGLICENSE) --maintainer $(MAINTAINER)
install: $(BINARY)
install -d $(DESTDIR)$(INSTALL_DIR)
install $(BINARY) $(DESTDIR)$(INSTALL_DIR)
uninstall:
rm $(DESTDIR)/usr/bin/$(BINARYNAME)