forked from rootless-containers/rootlesskit
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 785 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
GO=go
GO_FILES=$(shell find . -name *.go)
BINARIES=rootlesskit rootlessctl rootlesskit-docker-proxy
.PHONY: all
all: $(addprefix bin/, $(BINARIES))
.PHONY: clean
clean:
$(RM) -r bin/ _artifact/
bin/rootlesskit: $(GO_FILES)
$(GO) build -o $@ -v ./cmd/rootlesskit
bin/rootlessctl: $(GO_FILES)
$(GO) build -o $@ -v ./cmd/rootlessctl
bin/rootlesskit-docker-proxy: $(GO_FILES)
$(GO) build -o $@ -v ./cmd/rootlesskit-docker-proxy
.PHONY: cross
cross:
./hack/make-cross.sh
BINDIR ?= /usr/local/bin
.PHONY: install
install:
install -D -m 755 $(CURDIR)/bin/rootlesskit $(DESTDIR)$(BINDIR)/rootlesskit
install -D -m 755 $(CURDIR)/bin/rootlessctl $(DESTDIR)$(BINDIR)/rootlessctl
install -D -m 755 $(CURDIR)/bin/rootlesskit-docker-proxy $(DESTDIR)$(BINDIR)/rootlesskit-docker-proxy