Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs
5
6 include /usr/share/rustc/architecture.mk
7 export CARGO=/usr/share/cargo/bin/cargo
8 export CARGO_HOME=$(shell pwd)/debian/cargo_home
9 export CARGO_REGISTRY=$(shell pwd)/debian/cargo_registry
10 export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM)
11 export DEB_HOST_RUST_TYPE
12
13 %:
14 dh $@ --without single-binary
15
16 execute_after_dh_auto_clean:
17 $(CARGO) clean
18 rm -rf $(CARGO_HOME)
19 rm -rf $(CARGO_REGISTRY)
20
21 override_dh_auto_configure:
22 $(CARGO) prepare-debian $(CARGO_REGISTRY) --link-from-system
23 rm -f Cargo.lock
24 rm -f .cargo/config
25 dh_auto_configure -- \
26 --bindir=games
27
28 # Give the tests more time on slow arches
29 override_dh_auto_test:
30 dh_auto_test -- --timeout-multiplier 5
31
32 override_dh_auto_install:
33 $(if $(findstring armhf,$(DEB_HOST_ARCH)), DEB_BUILD_OPTIONS="parallel=4 $(filter-out parallel=%,$(DEB_BUILD_OPTIONS))") dh_auto_install