Makefile: support install, makes packaging easier

This commit is contained in:
Corey Richardson 2014-06-23 15:33:14 -07:00
parent dd9d81b6d6
commit e6de26491f

View File

@ -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