libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

rules (1425B)


      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/,$(filter-out libeufin-common,$(shell dh_listpackages)))
     18 
     19 
     20 override_dh_installsystemd:
     21 	dh_installsystemd --no-start --no-enable --no-stop-on-upgrade -p libeufin-bank  --name libeufin-bank-gc
     22 	dh_installsystemd --no-start --no-enable --no-stop-on-upgrade -p libeufin-bank  --name libeufin-bank
     23 	dh_installsystemd --no-start --no-enable --no-stop-on-upgrade -p libeufin-nexus --name libeufin-nexus-ebics-submit
     24 	dh_installsystemd --no-start --no-enable --no-stop-on-upgrade -p libeufin-nexus --name libeufin-nexus-ebics-fetch
     25 	dh_installsystemd --no-start --no-enable --no-stop-on-upgrade -p libeufin-nexus --name libeufin-nexus-httpd
     26 	dh_installsystemd --no-start --no-enable --no-stop-on-upgrade -p libeufin-ebisync --name libeufin-ebisync-fetch
     27 	dh_installsystemd --no-start --no-enable --no-stop-on-upgrade -p libeufin-ebisync --name libeufin-ebisync-httpd
     28 	dh_installsystemd --no-start --no-enable --no-stop-on-upgrade