g3/g3bench/debian/rules
Zhang Jingqiang 145fe58db4
Some checks are pending
Linux-CI / Clippy (push) Waiting to run
Linux-CI / Build vendored (push) Waiting to run
Linux-CI / Build (push) Waiting to run
Linux-CI / Build with OpenSSL Async Job (push) Waiting to run
CodeCoverage / lib unit test (push) Waiting to run
CodeCoverage / g3mkcert test (push) Waiting to run
CodeCoverage / g3keymess test (push) Waiting to run
CodeCoverage / g3proxy test (push) Waiting to run
CodeCoverage / g3bench test (push) Waiting to run
CodeCoverage / g3statsd test (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (java-kotlin) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
CrossCompiling / Build (push) Waiting to run
MacOS-CI / Build (push) Waiting to run
MacOS-CI / Build vendored (push) Waiting to run
StaticLinking / musl (push) Waiting to run
StaticLinking / msvc (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
fix deb build for tarball
2025-08-10 23:41:31 +08:00

28 lines
716 B
Makefile
Executable file

#!/usr/bin/make -f
PACKAGE_NAME := g3bench
BUILD_PROFILE := release-lto
DEB_VERSION ?= $(shell dpkg-parsechangelog -SVersion)
SSL_FEATURE ?= $(shell scripts/package/detect_openssl_feature.sh)
%:
dh $@
override_dh_clean:
dh_clean -Xvendor
override_dh_auto_clean:
cargo clean --frozen --offline --release
override_dh_auto_build:
G3_PACKAGE_VERSION=$(DEB_VERSION) \
cargo build --frozen --offline --profile $(BUILD_PROFILE) \
--no-default-features --features $(SSL_FEATURE),rustls-ring,quic \
--package g3bench
override_dh_auto_install:
install -m 755 -D target/$(BUILD_PROFILE)/g3bench debian/tmp/usr/bin/g3bench
override_dh_installchangelogs:
dh_installchangelogs $(PACKAGE_NAME)/CHANGELOG