BASE_DIRECTORY:=$(shell git rev-parse --show-toplevel) GIT_TAG:=$(shell cat GIT_TAG) GOLANG_VERSION:=$(shell cat GOLANG_VERSION) REPO=helm-controller REPO_OWNER=fluxcd BINARY_TARGET_FILES=helm-controller FIX_LICENSES_XEIPUUV_TARGET=$(REPO)/vendor/github.com/xeipuuv/gojsonpointer/LICENSE.txt FIX_LICENSES_API_LICENSE_TARGET=$(REPO)/vendor/github.com/fluxcd/helm-controller/api/LICENSE BASE_IMAGE_NAME=eks-distro-minimal-base include $(BASE_DIRECTORY)/Common.mk $(GATHER_LICENSES_TARGETS): $(FIX_LICENSES_XEIPUUV_TARGET) $(FIX_LICENSES_API_LICENSE_TARGET) $(FIX_LICENSES_XEIPUUV_TARGET): | $(GO_MOD_DOWNLOAD_TARGETS) # The xeipuuv dependency github repos all have licenses however they all do not have go.mod files # checked in to the repo. Hence we need to manually download licenses from Github for each of them # and place them in the respective folders under vendor directory so that they is available for # go-licenses to pick up for package in gojsonpointer gojsonreference gojsonschema ; do \ wget -q --retry-connrefused https://raw.githubusercontent.com/xeipuuv/$$package/master/LICENSE-APACHE-2.0.txt -O \ $(REPO)/vendor/github.com/xeipuuv/$$package/LICENSE.txt; \ done; $(FIX_LICENSES_API_LICENSE_TARGET): | $(GO_MOD_DOWNLOAD_TARGETS) # Internal go.mod under /api directory cp $(REPO)/LICENSE $@ ########### DO NOT EDIT ############################# # To update call: make add-generated-help-block # This is added to help document dynamic targets and support shell autocompletion # Run make help for a formatted help block with all targets include Help.mk ########### END GENERATED ###########################