summaryrefslogtreecommitdiffstats
path: root/ffi
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-08-16 14:28:57 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-08-16 14:28:57 +0200
commit9407e5308e2b766a37d5168a1c4b6c5ad457d706 (patch)
treed694ce1923abad9eead5ed5597ce3a22a310244b /ffi
parent3c28ddc069ecebfdb282a35291c8aecd9fd1d11b (diff)
ffi: Generate a pkgconfig file for the debug build.
Diffstat (limited to 'ffi')
-rw-r--r--ffi/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffi/Makefile b/ffi/Makefile
index b94df62a..352da2b8 100644
--- a/ffi/Makefile
+++ b/ffi/Makefile
@@ -18,6 +18,11 @@ all: build
.PHONY: build
build:
+ sed -e 's|VERSION|$(VERSION)|g' \
+ -e 's|PREFIX|$(shell pwd)|g' \
+ -e 's|libdir=.*|libdir=$(shell pwd)/../target/debug|g' \
+ sequoia.pc.in \
+ > ../target/debug/sequoia.pc
# Testing and examples.
.PHONY: test check