More makefile cleanup

This commit is contained in:
Katrina Verey
2022-04-04 16:43:43 -04:00
parent 0fa010c7e7
commit 46875b6ac4
12 changed files with 74 additions and 103 deletions

View File

@@ -1,18 +1,10 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
.PHONY: license image
.PHONY: image
GOBIN = $(shell go env GOBIN)
ifeq ($(GOBIN),)
GOBIN = $(shell go env GOPATH)/bin
endif
license:
(which $(GOBIN)/addlicense || go get github.com/google/addlicense)
$(GOBIN)/addlicense -y 2022 -c "The Kubernetes Authors." -f LICENSE_TEMPLATE .
all: license
all:
true
image:
docker build image -t gcr.io/kustomize-functions/example-cockroachdb:v0.1.0