Skip to content

Commit

Permalink
Merge pull request coreos#1121 from cgwalters/makeinstall
Browse files Browse the repository at this point in the history
build-sys: Add `make install`
  • Loading branch information
jlebon authored Nov 20, 2019
2 parents 589fc8f + 9549a04 commit 44bfbae
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
PREFIX ?= /usr
DESTDIR ?=

GOARCH:=$(shell uname -m)
# Copied from coreos-assembler Makefile
ifeq ($(GOARCH),x86_64)
GOARCH=amd64
else ifeq ($(GOARCH),aarch64)
GOARCH=arm64
endif

.PHONY: build test vendor
build:
./build

.PHONY: install
install: build
install -D -t $(DESTDIR)$(PREFIX)/bin bin/{ore,kola,plume}
install -D -m 0755 -t $(DESTDIR)$(PREFIX)/lib/kola/$(GOARCH) bin/$(GOARCH)/kolet

test:
./test

Expand Down

0 comments on commit 44bfbae

Please sign in to comment.