From 5ebaefa24ff2299eb5392cca0ad0b25d198ce331 Mon Sep 17 00:00:00 2001 From: Alexander Batischev Date: Tue, 2 Feb 2021 01:45:48 +0300 Subject: [PATCH] Docs: move CARGO_BUILD_TARGET note I think it makes more sense to put it amidst the other instructions, rather than keep it at the very end. --- README.md | 6 +++--- doc/newsboat.asciidoc | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index edc4e92f8..a7881ee05 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,9 @@ There are numerous ways: sure to install the header files as well (on Debian and derivatives, headers are in `-dev` packages, e.g. `libsqlite3-dev`.) + Cross-compilers need to set `CARGO_BUILD_TARGET`; see [cargo + documentation](https://doc.rust-lang.org/cargo/reference/config.html#environment-variables). + Then compile and install with: $ make # pass -jN to use N CPU cores, e.g. -j8 @@ -105,9 +108,6 @@ There are numerous ways: To uninstall, run `sudo make uninstall`. -Cross-compilers need to set `CARGO_BUILD_TARGET`; see [cargo -documentation](https://doc.rust-lang.org/cargo/reference/config.html#environment-variables). - diff --git a/doc/newsboat.asciidoc b/doc/newsboat.asciidoc index eb73b159b..0b30a8bf6 100644 --- a/doc/newsboat.asciidoc +++ b/doc/newsboat.asciidoc @@ -115,14 +115,13 @@ There are a few different ways: $ sudo make install # install everything under /usr/local + To install to a different directory, pass `prefix` like so: `sudo make -prefix=/opt/newsboat install`. +prefix=/opt/newsboat install`. If you're cross-compiling, set +`CARGO_BUILD_TARGET`; see +https://doc.rust-lang.org/cargo/reference/config.html#environment-variables[cargo +documentation] for details. + To uninstall, run `sudo make uninstall`. -Cross-compilers need to set `CARGO_BUILD_TARGET`; see -https://doc.rust-lang.org/cargo/reference/config.html#environment-variables[cargo -documentation]. - // UPDATE README.md IF YOU CHANGE THIS LIST == First Steps