mirror of
https://github.com/bytedance/g3.git
synced 2026-05-01 21:20:40 +00:00
28 lines
733 B
Makefile
Executable file
28 lines
733 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
PACKAGE_NAME := g3tiles
|
|
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
|
|
|
|
override_dh_auto_build:
|
|
G3_PACKAGE_VERSION=$(DEB_VERSION) \
|
|
cargo build --frozen --offline --profile $(BUILD_PROFILE) \
|
|
--no-default-features --features rustls-ring,quic \
|
|
--package g3tiles --package g3tiles-ctl
|
|
|
|
override_dh_auto_install:
|
|
install -m 755 -D target/$(BUILD_PROFILE)/g3tiles debian/tmp/usr/bin/g3tiles
|
|
install -m 755 -D target/$(BUILD_PROFILE)/g3tiles-ctl debian/tmp/usr/bin/g3tiles-ctl
|
|
|
|
override_dh_installchangelogs:
|
|
dh_installchangelogs $(PACKAGE_NAME)/CHANGELOG
|