Makefile
Using make
is optional if you know your way into cargo and can accept
the job to manually install man pages, completions and the binary.
I've only added a Makefile
to simplify installing these assets, as well as
the binary. By default make
uses native compilation, you can define your
wished target like this:
Building
$ TARGET=x86_64-pc-windows-gnu make install CARGOFLAGS="--release --target=$TARGET"
Installing
# TARGET=x86_64-pc-windows-gnu make CARGOFLAGS="--release --target=$TARGET" RELEASE="target/$TARGET/release"
Don't forget that make
by itself runs cargo
in order to built the binary.
It's common on projects that use make to split building in two steps, given
that make install
requires permissions to write on $DESTDIR$PREFIX
.