From 2b367a30df6e155621c116c41cc262dd96ad1a33 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 20 Sep 2020 04:37:31 +0200 Subject: 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. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3