2016-02-28 20:15:24 +01:00
|
|
|
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\>"
|
2016-03-02 01:42:15 +01:00
|
|
|
PKGVERSION = "0.4.1-unreleased"
|
2016-02-29 00:45:02 +01:00
|
|
|
PKGLICENSE = "LGPL-2.1+"
|
|
|
|
|
2016-02-28 20:15:24 +01:00
|
|
|
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)
|
|
|
|
|
2016-02-28 20:15:24 +01:00
|
|
|
install: $(BINARY)
|
|
|
|
install -d $(DESTDIR)$(INSTALL_DIR)
|
|
|
|
install $(BINARY) $(DESTDIR)$(INSTALL_DIR)
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm $(DESTDIR)/usr/bin/$(BINARYNAME)
|