Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
90aefb93
Commit
90aefb93
authored
8 years ago
by
Adam Reese
Browse files
Options
Download
Patches
Plain Diff
ref(Makefile): use GOBIN for go builds
parent
2c71fb9f
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+4
-6
Makefile
with
4 additions
and
6 deletions
+4
-6
Makefile
+
4
−
6
View file @
90aefb93
...
@@ -12,18 +12,16 @@ TESTS := .
...
@@ -12,18 +12,16 @@ TESTS := .
TESTFLAGS
:=
TESTFLAGS
:=
LDFLAGS
:=
LDFLAGS
:=
GOFLAGS
:=
GOFLAGS
:=
BINDIR
:=
.
/bin
BINDIR
:=
$(
CURDIR
)
/bin
BINARIES
:=
helm tiller
BINARIES
:=
helm tiller
.PHONY
:
all
.PHONY
:
all
all
:
build
all
:
build
.PHONY
:
build
.PHONY
:
build
build
:
GOFLAGS += -i
docker-binary
:
GOFLAGS += -i
build
:
build
:
@
for
i
in
$(
BINARIES
);
do
\
GOBIN
=
$(
BINDIR
)
$(
GO
)
install
$(
GOFLAGS
)
-tags
'
$(
TAGS
)
'
-ldflags
'
$(
LDFLAGS
)
'
github.com/kubernetes/helm/cmd/...
CGO_ENABLED
=
0
GOOS
=
$(
GOOS
)
GOARCH
=
$(
GOARCH
)
$(
GO
)
build
-o
$(
BINDIR
)
/
$$
i
$(
GOFLAGS
)
-tags
'
$(
TAGS
)
'
-ldflags
'
$(
LDFLAGS
)
'
./cmd/
$$
i
||
exit
1
;
\
done
.PHONY
:
check-docker
.PHONY
:
check-docker
check-docker
:
check-docker
:
...
@@ -35,7 +33,7 @@ check-docker:
...
@@ -35,7 +33,7 @@ check-docker:
.PHONY
:
docker-binary
.PHONY
:
docker-binary
docker-binary
:
GOOS = linux
docker-binary
:
GOOS = linux
docker-binary
:
GOARCH = amd64
docker-binary
:
GOARCH = amd64
docker-binary
:
BINDIR =
.
/rootfs
docker-binary
:
BINDIR =
$(CURDIR)
/rootfs
docker-binary
:
GOFLAGS += -a -installsuffix cgo
docker-binary
:
GOFLAGS += -a -installsuffix cgo
docker-binary
:
build
docker-binary
:
build
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets