rules (992B)
1 #!/usr/bin/make -f 2 3 # Keep cargo's registry/cache inside the build tree. cargo fetches crates from 4 # the network at build time (this is not an archive-policy-clean offline build), 5 # and without this it would write to $HOME, which is not ours to touch under 6 # Rules-Requires-Root: no. 7 export CARGO_HOME = $(CURDIR)/debian/cargo 8 9 %: 10 dh $@ --no-parallel 11 12 # Nothing to configure: the build needs no toolchain setup (it uses the cargo 13 # from the cargo Build-Depends), and upstream's ./configure only records the 14 # install prefix in build-system/config.mk -- which this package does not use, 15 # as debian/robocop.install names explicit paths. The override is still 16 # required: ./configure exists, so dh would otherwise select the autoconf build 17 # system and call it with autoconf-style options it does not accept. 18 override_dh_auto_configure: 19 20 override_dh_auto_build: 21 make build 22 23 override_dh_auto_test: 24 true 25 26 override_dh_auto_install: 27 true 28 29 override_dh_auto_clean: 30 rm -rf $(CARGO_HOME) target