mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Merge pull request #29 from cmr/make-install
Makefile: support install, makes packaging easier
This commit is contained in:
commit
6ac9d779ba
4
Makefile
4
Makefile
@ -1,5 +1,6 @@
|
|||||||
RUSTC ?= rustc
|
RUSTC ?= rustc
|
||||||
RUSTC_FLAGS ?=
|
RUSTC_FLAGS ?=
|
||||||
|
DESTDIR ?= /usr/local
|
||||||
|
|
||||||
# Link flags to pull in dependencies
|
# Link flags to pull in dependencies
|
||||||
BINS = cargo \
|
BINS = cargo \
|
||||||
@ -73,6 +74,9 @@ distclean: clean
|
|||||||
cd libs/hammer.rs && make clean
|
cd libs/hammer.rs && make clean
|
||||||
cd libs/toml-rs && make clean
|
cd libs/toml-rs && make clean
|
||||||
|
|
||||||
|
install:
|
||||||
|
cp target/cargo target/cargo-* $(DESTDIR)/bin
|
||||||
|
|
||||||
# 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