Adjust Makefile to new repository

This commit is contained in:
Tomasz Sęk 2019-02-11 21:12:49 +01:00
parent ee79b2fadc
commit 6590081cdc
No known key found for this signature in database
GPG Key ID: DC356D23F6A644D0
3 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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