buildsys: add update-bindings target

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
Stoiko Ivanov 2021-06-07 16:57:17 +00:00
parent e66585f467
commit f05aec345d

View File

@ -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}: