summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp-ffi/Makefile')
-rw-r--r--openpgp-ffi/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp-ffi/Makefile b/openpgp-ffi/Makefile
index 49511468..b6a378fa 100644
--- a/openpgp-ffi/Makefile
+++ b/openpgp-ffi/Makefile
@@ -71,10 +71,12 @@ examples:
# Installation.
.PHONY: build-release
build-release:
+ CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \
+ $(CARGO) build $(CARGO_FLAGS) --release --package sequoia-openpgp-ffi
$(call sequoia_openpgp_pc,$(CARGO_TARGET_DIR)/release,true)
.PHONY: install
-install:
+install: build-release
$(INSTALL) -d $(DESTDIR)$(PREFIX)/share/pkgconfig
$(call sequoia_openpgp_pc,$(DESTDIR)$(PREFIX)/share/pkgconfig,)
$(INSTALL) -d $(DESTDIR)$(PREFIX)/include