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
|
||||
- make CC="$CC" RUSTC="$RUSTC" -j4
|
||||
- make CC="$CC" RUSTC="$RUSTC" test -j4
|
||||
- make install DESTDIR=${PWD}/destdir
|
||||
|
||||
env:
|
||||
- ARCH=i686 CC='cc -m32'
|
||||
|
7
Makefile
7
Makefile
@ -1,6 +1,8 @@
|
||||
RUSTC ?= rustc
|
||||
RUSTC_FLAGS ?=
|
||||
DESTDIR ?= /usr/local
|
||||
DESTDIR ?=
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR ?= $(PREFIX)/bin
|
||||
|
||||
# Link flags to pull in dependencies
|
||||
BINS = cargo \
|
||||
@ -75,7 +77,8 @@ distclean: clean
|
||||
cd libs/toml-rs && make clean
|
||||
|
||||
install:
|
||||
cp target/cargo target/cargo-* $(DESTDIR)/bin
|
||||
install -d $(DESTDIR)$(BINDIR)
|
||||
install target/cargo target/cargo-* $(DESTDIR)$(BINDIR)
|
||||
|
||||
# Setup phony tasks
|
||||
.PHONY: all clean distclean test test-unit test-integration libcargo
|
||||
|
Loading…
x
Reference in New Issue
Block a user