aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2020-09-20 04:37:31 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-09-20 11:39:07 +0200
commit2b367a30df6e155621c116c41cc262dd96ad1a33 (patch)
treef915f625a44cec8ccdfe78f380b563c15d0aeef6 /Makefile
parent7394a6b188c2a6c0d5ae72f8bba5fddc9720613b (diff)
downloadnitrokey-sys-rs-2b367a30df6e155621c116c41cc262dd96ad1a33.tar.gz
nitrokey-sys-rs-2b367a30df6e155621c116c41cc262dd96ad1a33.tar.bz2
Use quilt to manage modifications in src/ffi.rs
Previously, we manually modified the src/ffi.rs file to add deprecation attributes. With this patch, we use quilt to automatically apply patches with the changes.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dc55e2f..bf47813 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ BINDGEN ?= bindgen
LIBNITROKEY ?= $(wildcard libnitrokey-v*)
src/ffi.rs: ${LIBNITROKEY}/NK_C_API.h
+ quilt pop -af || true
${BINDGEN} \
--whitelist-function "NK_.*" \
--whitelist-var "NK_.*" \
@@ -9,3 +10,4 @@ src/ffi.rs: ${LIBNITROKEY}/NK_C_API.h
--output "$@" \
"$<" \
-- "-I${LIBNITROKEY}/libnitrokey"
+ quilt push -a