19b78f1511
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
38 lines
953 B
Makefile
Executable File
38 lines
953 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
|
|
include /usr/share/rustc/architecture.mk
|
|
|
|
export BUILD_MODE=release
|
|
|
|
CARGO=/usr/share/cargo/bin/cargo
|
|
|
|
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
|
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
|
|
export CARGO_HOME = $(CURDIR)/debian/cargo_home
|
|
|
|
export DEB_CARGO_CRATE=pve-lxc-syscalld_$(DEB_VERSION_UPSTREAM)
|
|
export DEB_CARGO_PACKAGE=pve-lxc-syscalld
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_configure:
|
|
$(CARGO) prepare-debian $(CURDIR)/debian/cargo_registry --link-from-system
|
|
dh_auto_configure
|
|
|
|
override_dh_missing:
|
|
dh_missing --fail-missing
|
|
|
|
#override_dh_installinit:
|
|
# dh_installinit
|
|
# dh_installinit --name pve-lxc-syscalld
|
|
|
|
# # workaround https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933541
|
|
# # TODO: remove once available (Debian 11 ?)
|
|
# override_dh_dwz:
|
|
# dh_dwz --no-dwz-multifile
|