#!/usr/bin/make -f

export LC_ALL = C.UTF-8

%:
	dh $@ --buildsystem cargo

# loggerhead-doc (Architecture: all) ships the manual rendered with mdbook.
# The cargo buildsystem cannot configure during a binary-indep-only build
# because the librust-* build dependencies live in Build-Depends rather than
# Build-Depends-Indep, so skip the cargo configure step here.
override_dh_auto_configure-indep:

override_dh_auto_build-indep:
	mdbook build docs

# There is nothing to cargo-test or cargo-install for the documentation-only
# build; the binary package handles those during the arch build.
override_dh_auto_test-indep:

override_dh_auto_install-indep:

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs/book
