mirror of
https://github.com/bytedance/g3.git
synced 2026-05-18 23:42:21 +00:00
27 lines
607 B
Makefile
Executable file
27 lines
607 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
PACKAGE_NAME := g3fcgen
|
|
BUILD_PROFILE := release-lto
|
|
|
|
DEB_VERSION ?= $(shell dpkg-parsechangelog -SVersion)
|
|
|
|
%:
|
|
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 \
|
|
--package g3fcgen
|
|
|
|
override_dh_auto_install:
|
|
install -m 755 -D target/$(BUILD_PROFILE)/g3fcgen debian/tmp/usr/bin/g3fcgen
|
|
|
|
override_dh_installchangelogs:
|
|
dh_installchangelogs $(PACKAGE_NAME)/CHANGELOG
|