mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-22 09:03:35 +00:00
29 lines
942 B
Makefile
29 lines
942 B
Makefile
all: build
|
|
.PHONY: all
|
|
|
|
# Include the library makefile
|
|
include $(addprefix ./vendor/github.com/openshift/build-machinery-go/make/, \
|
|
golang.mk \
|
|
targets/openshift/deps.mk \
|
|
targets/openshift/images.mk \
|
|
lib/tmp.mk \
|
|
)
|
|
|
|
# Image URL to use all building/pushing image targets;
|
|
IMAGE ?= placement
|
|
IMAGE_REGISTRY ?= quay.io/open-cluster-management
|
|
|
|
GIT_HOST ?= github.com/open-cluster-management
|
|
BASE_DIR := $(shell basename $(PWD))
|
|
DEST := $(GOPATH)/src/$(GIT_HOST)/$(BASE_DIR)
|
|
|
|
# Add packages to do unit test
|
|
GO_TEST_PACKAGES :=./pkg/...
|
|
|
|
# This will call a macro called "build-image" which will generate image specific targets based on the parameters:
|
|
# $0 - macro name
|
|
# $1 - target suffix
|
|
# $2 - Dockerfile path
|
|
# $3 - context directory for image build
|
|
# It will generate target "image-$(1)" for building the image and binding it as a prerequisite to target "images".
|
|
$(call build-image,$(IMAGE),$(IMAGE_REGISTRY)/$(IMAGE),./Dockerfile,.) |