#!/usr/bin/make -f

# Start build by executing:
# $ debuild --prepend-path /usr/local/bin --no-tgz-check -us -uc

# Uncomment this line out to make installation process more chatty.
# Keep it on until we know there's no outstanding problems with installation.
# export DH_VERBOSE=1

# There's a bug here
export DEB_BUILD_MAINT_OPTIONS=hardening=-format

include /usr/share/dpkg/buildflags.mk


%:
	dh $@ --with=config-package

override_dh_installinit:
	dh_installinit --name=cuttlefish-host-resources
	dh_installinit

override_dh_auto_build:
	cd cvd && bazel build --linkopt="-Wl,--build-id=sha1" cuttlefish/host/commands/cvd:cvd --spawn_strategy=local
	dh_auto_build

