mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
fix: install linuxkit in top-level bin folder
Signed-off-by: Edvin Eriksson <edvin.erikson@leovegas.com>
This commit is contained in:
parent
be2813f51f
commit
f4c4ab1c8c
6
Makefile
6
Makefile
@ -3,9 +3,11 @@ VERSION="v0.8+"
|
||||
GO_COMPILE=linuxkit/go-compile:7b1f5a37d2a93cd4a9aa2a87db264d8145944006
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
LINUXKIT?=$(CURDIR)/bin/linuxkit.exe
|
||||
RTF?=bin/rtf.exe
|
||||
GOOS?=windows
|
||||
else
|
||||
LINUXKIT?=$(CURDIR)/bin/linuxkit
|
||||
RTF?=bin/rtf
|
||||
GOOS?=$(shell uname -s | tr '[:upper:]' '[:lower:]')
|
||||
endif
|
||||
@ -21,7 +23,7 @@ PREFIX?=/usr/local
|
||||
|
||||
LOCAL_TARGET?=$(CURDIR)/bin/linuxkit
|
||||
|
||||
export VERSION GO_COMPILE GOOS GOARCH LOCAL_TARGET
|
||||
export VERSION GO_COMPILE GOOS GOARCH LOCAL_TARGET LINUXKIT
|
||||
|
||||
.DELETE_ON_ERROR:
|
||||
|
||||
@ -52,7 +54,7 @@ tmp_mt_bin.tar: Makefile
|
||||
docker run --rm --log-driver=none -e http_proxy=$(http_proxy) -e https_proxy=$(https_proxy) $(CROSS) $(GO_COMPILE) --clone-path github.com/estesp/manifest-tool --clone $(MT_REPO) --commit $(MT_COMMIT) --package github.com/estesp/manifest-tool --ldflags "-X main.gitCommit=$(MT_COMMIT)" -o bin/manifest-tool > $@
|
||||
|
||||
.PHONY: linuxkit
|
||||
linuxkit:
|
||||
linuxkit: bin
|
||||
make -C ./src/cmd/linuxkit
|
||||
|
||||
.PHONY: test-cross
|
||||
|
1
src/cmd/linuxkit/.gitignore
vendored
Normal file
1
src/cmd/linuxkit/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
bin/
|
@ -31,7 +31,7 @@ $(LINUXKIT): tmp_linuxkit_bin.tar | bin
|
||||
touch $@
|
||||
|
||||
tmp_linuxkit_bin.tar: $(LINUXKIT_DEPS)
|
||||
tar cf - -C . . | docker run --rm --net=none --log-driver=none -i $(CROSS) $(GO_COMPILE) --package github.com/linuxkit/linuxkit/src/cmd/linuxkit --ldflags "-X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.GitCommit=$(GIT_COMMIT) -X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.Version=$(VERSION)" -o $(LINUXKIT) > $@
|
||||
tar cf - -C . . | docker run --rm --net=none --log-driver=none -i $(CROSS) $(GO_COMPILE) --package github.com/linuxkit/linuxkit/src/cmd/linuxkit --ldflags "-X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.GitCommit=$(GIT_COMMIT) -X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.Version=$(VERSION)" -o bin/linuxkit > $@
|
||||
|
||||
.PHONY: test-cross
|
||||
test-cross:
|
||||
|
Loading…
Reference in New Issue
Block a user