github.com/telepresenceio/telepresence/v2@v2.20.0-pro.6.0.20240517030216-236ea954e789/Makefile (about) 1 # Copyright 2020-2021 Datawire. All rights reserved. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 TELEPRESENCE_REGISTRY ?= docker.io/datawire 16 TELEPRESENCE_VERSION ?= $(shell unset GOOS GOARCH; go run ./build-aux/genversion) 17 # Ensure that the variable is fully expanded. We don't want to call genversion repeatedly 18 # as it may produce different results every time. 19 TELEPRESENCE_VERSION := ${TELEPRESENCE_VERSION} 20 21 SHELL:=$(shell which bash) 22 23 $(if $(filter v2.%,$(TELEPRESENCE_VERSION)),\ 24 $(info [make] TELEPRESENCE_VERSION=$(TELEPRESENCE_VERSION)),\ 25 $(error TELEPRESENCE_VERSION variable is invalid: It must be a v2.* string, but is '$(TELEPRESENCE_VERSION)')) 26 export TELEPRESENCE_VERSION 27 28 .DEFAULT_GOAL = help 29 30 include build-aux/prelude.mk 31 include build-aux/tools.mk 32 include build-aux/main.mk 33 include build-aux/docs.mk