From 6590081cdc3e406bf9f7d3205fcdb2c2cb448fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20S=C4=99k?= Date: Mon, 11 Feb 2019 21:12:49 +0100 Subject: [PATCH] Adjust Makefile to new repository --- Makefile | 5 ++++- config.env | 6 +++--- docs/developer-guide.md | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 955a140f..4de7ea7a 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,9 @@ ifndef HAS_DEP endif dep ensure -v +.PHONY: dep +dep: go-dependencies ## Ensure build dependencies + .PHONY: build build: $(NAME) ## Builds a dynamic executable or package @echo "+ $@" @@ -103,7 +106,7 @@ build: $(NAME) ## Builds a dynamic executable or package .PHONY: $(NAME) $(NAME): $(wildcard *.go) $(wildcard */*.go) VERSION.txt @echo "+ $@" - CGO_ENABLED=0 go build -tags "$(BUILDTAGS)" ${GO_LDFLAGS} -o build/_output/bin/$(NAME) $(BUILD_PATH) + CGO_ENABLED=0 go build -tags "$(BUILDTAGS)" ${GO_LDFLAGS} -o build/_output/bin/jenkins-operator $(BUILD_PATH) .PHONY: static static: ## Builds a static executable diff --git a/config.env b/config.env index 3fe1891c..c48163be 100644 --- a/config.env +++ b/config.env @@ -1,8 +1,8 @@ # Setup variables for the Makefile -NAME=jenkins-operator -PKG=github.com/VirtusLab/jenkins-operator +NAME=kubernetes-operator +PKG=github.com/jenkinsci/kubernetes-operator DOCKER_REGISTRY=virtuslab -REPO=jenkins-operator +REPO=kubernetes-operator NAMESPACE=default API_VERSION=jenkins:v1alpha1 MINIKUBE_KUBERNETES_VERSION=v1.10.9 diff --git a/docs/developer-guide.md b/docs/developer-guide.md index e6f9685c..c51c7395 100644 --- a/docs/developer-guide.md +++ b/docs/developer-guide.md @@ -17,8 +17,8 @@ This document explains how to setup your development environment. mkdir -p $GOPATH/src/github.com/jenkinsci cd $GOPATH/src/github.com/jenkinsci/ git clone git@github.com:jenkinsci/kubernetes-operator.git -cd jenkins-operator -make go-dependencies +cd kubernetes-operator +make dep ``` ## Build and run