#!/usr/bin/make -f

TARGET = --target x86_64-unknown-linux-musl

%:
	dh $@

override_dh_auto_build:
	true

override_dh_auto_install:
	mkdir -p debian/repeatcmd/usr
	cargo install --locked --offline --path=. --root=debian/repeatcmd/usr $(TARGET)
	find debian/*/ -name '.crates*.*' -delete
	ldd debian/repeatcmd/usr/bin/repeatcmd | grep 'statically linked'

override_dh_auto_test:
	echo tests are disabled, for now
