mirror of
https://github.com/bytedance/g3.git
synced 2026-05-03 14:10:39 +00:00
30 lines
1,005 B
Makefile
Executable file
30 lines
1,005 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
PACKAGE_NAME := g3fcgen
|
|
BUILD_PROFILE := release-lto
|
|
|
|
DEB_VERSION ?= $(shell dpkg-parsechangelog -SVersion)
|
|
SSL_FEATURE ?= $(shell scripts/package/detect_openssl_feature.sh)
|
|
|
|
%:
|
|
dh $@
|
|
|
|
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), \
|
|
--package g3fcgen --package g3fcgen-one
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install
|
|
install -m 755 -D target/$(BUILD_PROFILE)/g3fcgen debian/tmp/usr/bin/g3fcgen
|
|
install -m 755 -D target/$(BUILD_PROFILE)/g3fcgen-one debian/tmp/usr/bin/g3fcgen-one
|
|
install -m 644 -D $(PACKAGE_NAME)/service/g3fcgen.service debian/tmp/lib/systemd/system/g3fcgen.service
|
|
install -m 644 -D $(PACKAGE_NAME)/service/g3fcgen.preset debian/tmp/lib/systemd/system-preset/90-g3fcgen.preset
|
|
|
|
override_dh_installchangelogs:
|
|
dh_installchangelogs $(PACKAGE_NAME)/CHANGELOG
|
|
|