Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fix #1264 make install works with new build path
Browse files Browse the repository at this point in the history
Add OS and ARCH detection so make install copies the correct file to
/usr/local/bin
  • Loading branch information
nanliu committed Oct 7, 2016
1 parent 549cf59 commit ca8d0fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#See the License for the specific language governing permissions and
#limitations under the License.

OS = $(shell uname -s | tr '[:upper:]' '[:lower:]')
ARCH = $(shell uname -m)

default:
$(MAKE) deps
$(MAKE) all
Expand All @@ -35,7 +38,7 @@ check:
all:
bash -c "./scripts/build_snap.sh"
install:
cp build/bin/snapd /usr/local/bin/
cp build/bin/snapctl /usr/local/bin/
cp build/$(OS)/$(ARCH)/snapd /usr/local/bin/
cp build/$(OS)/$(ARCH)/snapctl /usr/local/bin/
proto:
cd `echo $(GOPATH) | cut -d: -f 1`; bash -c "./src/github.com/intelsdi-x/snap/scripts/gen-proto.sh"

0 comments on commit ca8d0fc

Please sign in to comment.