mirror of
https://git.proxmox.com/git/proxmox-backup-qemu
synced 2025-08-16 23:38:15 +00:00
22 lines
665 B
Makefile
Executable File
22 lines
665 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# See debhelper(7) (uncomment to enable)
|
|
# output every command that modifies files on the build system.
|
|
#DH_VERBOSE = 1
|
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
export BUILD_MODE=release
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_configure:
|
|
@perl -ne 'if (/^version\s*=\s*"(\d+(?:\.\d+)+)"/) { my $$v_cargo = $$1; my $$v_deb = "$(DEB_VERSION_UPSTREAM)"; \
|
|
die "ERROR: d/changelog <-> Cargo.toml version mismatch: $$v_cargo != $$v_deb\n" if $$v_cargo ne $$v_deb; exit(0); }' Cargo.toml
|
|
dh_auto_configure
|
|
|
|
override_dh_strip:
|
|
dh_strip
|
|
debian/scripts/elf-strip-unused-dependencies.sh \
|
|
"debian/libproxmox-backup-qemu0/usr/lib/libproxmox_backup_qemu.so.0"
|