projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd9d81b
)
Makefile: support install, makes packaging easier
author
Corey Richardson
<corey@octayn.net>
Mon, 23 Jun 2014 22:33:14 +0000
(15:33 -0700)
committer
Corey Richardson
<corey@octayn.net>
Mon, 23 Jun 2014 22:38:56 +0000
(15:38 -0700)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 3a2bfb371ffd9d38fb474fc769677ab7a8aae917..bededdd1d4be6b85df28587035b331455e8c547a 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,5
+1,6
@@
RUSTC ?= rustc
RUSTC_FLAGS ?=
+DESTDIR ?= /usr/local
# Link flags to pull in dependencies
BINS = cargo \
@@
-73,6
+74,9
@@
distclean: clean
cd libs/hammer.rs && make clean
cd libs/toml-rs && make clean
+install:
+ cp target/cargo target/cargo-* $(DESTDIR)/bin
+
# Setup phony tasks
.PHONY: all clean distclean test test-unit test-integration libcargo