Don't build docs in an arch-only build

This commit is contained in:
Ximin Luo 2017-05-31 02:28:22 +02:00
parent 25f1c2fefa
commit 1fd63ebe1f
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,8 @@ build = "DEB_BUILD_RUST_TYPE"
host = ["DEB_HOST_RUST_TYPE"]
target = ["DEB_TARGET_RUST_TYPE"]
docs = false
[install]
prefix = "/usr"

2
debian/rules vendored
View File

@ -148,6 +148,8 @@ override_dh_auto_build-arch: generate-sources
# depends on build-arch anyways.
override_dh_auto_build-indep: generate-sources
ifneq (,$(BUILD_DOCS))
# Rust has a weird way of configuring whether to build docs or not
sed -i -e 's/^docs = false/docs = true/' debian/config.toml
$(RUSTBUILD) doc $(RUSTBUILD_FLAGS)
endif