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