From f05aec345d2d2b5979b99939befe8cc4c4875cc4 Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Mon, 7 Jun 2021 16:57:17 +0000 Subject: [PATCH] buildsys: add update-bindings target Signed-off-by: Stoiko Ivanov --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index ca52529..86c53e0 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,12 @@ OPKGNAME=Xdgmime UPSTREAM=xdgmime-source/src all: ${DEB} +.PHONY: update-bindings +update-bindings: + cp -a ${UPSTREAM}/xdgmime*.[ch] ${OPKGNAME}/ + h2xs -P -v ${DEB_VERSION_UPSTREAM} -F -DHAVE_MMAP -M '^XDG_' -t PV -Ofan Xdgmime xdgmime.h + rm -f ${OPKGNAME}/xdgmime*.[ch] + echo "Please manually check and add the diff of the automatically generated update" .PHONY: ${BUILDSRC} ${BUILDSRC}: