1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-11-18 00:13:55 +01:00
crowbook/Makefile

27 lines
631 B
Makefile
Raw Normal View History

INSTALL_DIR = /usr/bin/
BINARYNAME = crowbook
BINARY = target/release/$(BINARYNAME)
2016-02-29 00:45:02 +01:00
PKGNAME= $(BINARYNAME)
2016-02-29 14:05:29 +01:00
MAINTAINER = "Élisabeth Henry \<liz.henry@ouvaton.org\>"
PKGVERSION = "0.4.1-unreleased"
2016-02-29 00:45:02 +01:00
PKGLICENSE = "LGPL-2.1+"
default: $(BINARY)
clean:
cargo clean
$(BINARY): src/lib/lib*.rs src/bin/*.rs Cargo.toml
cargo build --release
2016-02-29 00:45:02 +01:00
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)