mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Correct installation to follow standards
This commit is contained in:
parent
eb7a16376f
commit
fee7a47aba
@ -7,6 +7,7 @@ script:
|
|||||||
- ./.travis.check.style.sh
|
- ./.travis.check.style.sh
|
||||||
- make CC="$CC" RUSTC="$RUSTC" -j4
|
- make CC="$CC" RUSTC="$RUSTC" -j4
|
||||||
- make CC="$CC" RUSTC="$RUSTC" test -j4
|
- make CC="$CC" RUSTC="$RUSTC" test -j4
|
||||||
|
- make install DESTDIR=${PWD}/destdir
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- ARCH=i686 CC='cc -m32'
|
- ARCH=i686 CC='cc -m32'
|
||||||
|
7
Makefile
7
Makefile
@ -1,6 +1,8 @@
|
|||||||
RUSTC ?= rustc
|
RUSTC ?= rustc
|
||||||
RUSTC_FLAGS ?=
|
RUSTC_FLAGS ?=
|
||||||
DESTDIR ?= /usr/local
|
DESTDIR ?=
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
BINDIR ?= $(PREFIX)/bin
|
||||||
|
|
||||||
# Link flags to pull in dependencies
|
# Link flags to pull in dependencies
|
||||||
BINS = cargo \
|
BINS = cargo \
|
||||||
@ -75,7 +77,8 @@ distclean: clean
|
|||||||
cd libs/toml-rs && make clean
|
cd libs/toml-rs && make clean
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp target/cargo target/cargo-* $(DESTDIR)/bin
|
install -d $(DESTDIR)$(BINDIR)
|
||||||
|
install target/cargo target/cargo-* $(DESTDIR)$(BINDIR)
|
||||||
|
|
||||||
# Setup phony tasks
|
# Setup phony tasks
|
||||||
.PHONY: all clean distclean test test-unit test-integration libcargo
|
.PHONY: all clean distclean test test-unit test-integration libcargo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user