| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export LC_ALL = C.UTF-8 |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem cargo |
| 7 |
|
| 8 |
# loggerhead-doc (Architecture: all) ships the manual rendered with mdbook. |
| 9 |
# The cargo buildsystem cannot configure during a binary-indep-only build |
| 10 |
# because the librust-* build dependencies live in Build-Depends rather than |
| 11 |
# Build-Depends-Indep, so skip the cargo configure step here. |
| 12 |
override_dh_auto_configure-indep: |
| 13 |
|
| 14 |
override_dh_auto_build-indep: |
| 15 |
mdbook build docs |
| 16 |
|
| 17 |
# There is nothing to cargo-test or cargo-install for the documentation-only |
| 18 |
# build; the binary package handles those during the arch build. |
| 19 |
override_dh_auto_test-indep: |
| 20 |
|
| 21 |
override_dh_auto_install-indep: |
| 22 |
|
| 23 |
override_dh_auto_clean: |
| 24 |
dh_auto_clean |
| 25 |
rm -rf docs/book |