summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-03-20 15:17:35 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-03-23 11:31:27 +0100
commitc6dd617101daecc3736ef4859f6129d0f0baa34f (patch)
treec70178cfeb8607211c3be68618f2d4ccf4e593b7 /Makefile
parent847981133ccb1350e67763007e0fdbccef51bb08 (diff)
ffi: Move install rules to ffi/Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 0 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index ceff5502..2d2261be 100644
--- a/Makefile
+++ b/Makefile
@@ -21,8 +21,6 @@ XZ ?= xz
GPG ?= gpg
VERSION ?= $(shell grep '^version = ' Cargo.toml | cut -d'"' -f2)
-LIB_VERSION ?= $(shell grep '^version = ' ffi/Cargo.toml | cut -d'"' -f2)
-LIB_VERSION_MAJ = $(shell echo $(LIB_VERSION) | cut -d'.' -f1)
# Make sure subprocesses pick these up.
export PREFIX
@@ -64,16 +62,6 @@ build-release:
.PHONY: install
install: build-release
- $(INSTALL) -d $(DESTDIR)$(PREFIX)/include
- $(INSTALL) -t $(DESTDIR)$(PREFIX)/include ffi/include/sequoia.h
- $(INSTALL) -d $(DESTDIR)$(PREFIX)/include/sequoia
- $(INSTALL) -t $(DESTDIR)$(PREFIX)/include/sequoia \
- ffi/include/sequoia/*.h
- $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib
- $(INSTALL) target/release/libsequoia_ffi.so \
- $(DESTDIR)$(PREFIX)/lib/libsequoia.so.$(LIB_VERSION)
- ln -fs libsequoia.so.$(LIB_VERSION) \
- $(DESTDIR)$(PREFIX)/lib/libsequoia.so.$(LIB_VERSION_MAJ)
$(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/sequoia
$(INSTALL) -t $(DESTDIR)$(PREFIX)/lib/sequoia target/release/keystore
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin