]> git.proxmox.com Git - libarchive-perl.git/commitdiff
buildsys: add update-bindings make target
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 4 Jun 2021 14:20:36 +0000 (14:20 +0000)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 4 Jun 2021 14:23:09 +0000 (14:23 +0000)
This target serves primarily to document the h2xs arguments used when
updating the bindings.
Sadly h2xs overwrites quite a few things and is not configurable
comfortably (e.g. the AUTHOR is always taken from getpwuid)
so the manual checking will remain.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Makefile

index 84f58cee13dc0ecbfeb634c63ce30210e0dd35e6..13ca5079e4478a663888c19185dbe6c1fc9e03f2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,11 @@ DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
 all: ${DEB}
 
+.PHONY: update-bindings
+update-bindings:
+       h2xs -M '^(archive|ARCHIVE)_' -v ${DEB_VERSION_UPSTREAM} -On LibArchive /usr/include/archive.h /usr/include/archive_entry.h -larchive
+       echo "Please manually check and add the diff of the automatically generated update"
+
 .PHONY: ${BUILDSRC}
 ${BUILDSRC}:
        rm -rf ${BUILDSRC}