Skip to content

Commit

Permalink
Merge pull request #29 from cmr/make-install
Browse files Browse the repository at this point in the history
Makefile: support install, makes packaging easier
  • Loading branch information
wycats committed Jun 23, 2014
2 parents 3948538 + e6de264 commit 6ac9d77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RUSTC ?= rustc
RUSTC_FLAGS ?=
DESTDIR ?= /usr/local

# Link flags to pull in dependencies
BINS = cargo \
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6ac9d77

Please sign in to comment.