#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk

%:
	dh $@

# the module switches ksmtuned and the balloon service on and off itself
override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start

override_dh_auto_build:
	mkdir -p build
	CGO_ENABLED=0 GOOS=linux GOARCH=$(DEB_HOST_ARCH) go build -trimpath -o build/module ./cmd/memory-engine
	CGO_ENABLED=0 GOOS=linux GOARCH=$(DEB_HOST_ARCH) go build -trimpath -o build/balloond ./cmd/balloond

override_dh_auto_test:
	go test ./...

override_dh_auto_clean:
	rm -f build/module build/balloond

override_dh_dwz:
	:
