mirror of
https://github.com/lise-henry/crowbook
synced 2024-09-01 00:45:21 +02:00
28 lines
684 B
Makefile
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)
|