rules (964B)
1 #!/usr/bin/make -f 2 3 export CARGO_BUILD_TARGET = $(DEB_HOST_GNU_CPU)-unknown-linux-gnu 4 export RUSTFLAGS += -C linker=$(DEB_HOST_GNU_TYPE)-gcc 5 6 # Keep Debian flags off native build dependencies. 7 export CFLAGS_$(subst -,_,$(CARGO_BUILD_TARGET)) = $(CFLAGS) $(CPPFLAGS) 8 9 %: 10 dh $@ --no-parallel 11 12 override_dh_auto_configure override_dh_auto_test override_dh_auto_install: 13 true 14 15 override_dh_auto_build: 16 env -u CFLAGS $(MAKE) build 17 install -t target/release $(addprefix target/$(CARGO_BUILD_TARGET)/release/,$(shell dh_listpackages)) 18 19 override_dh_installsystemd: 20 dh_installsystemd --no-enable --no-start --no-stop-on-upgrade --name depolymerizer-bitcoin-httpd 21 dh_installsystemd --no-enable --no-start --no-stop-on-upgrade --name depolymerizer-bitcoin-worker 22 dh_installsystemd --no-enable --no-start --no-stop-on-upgrade --name depolymerizer-bitcoin-node 23 dh_installsystemd --no-enable --no-start --no-stop-on-upgrade --name depolymerizer-bitcoin 24 dh_installsystemd