Skip to content

Commit

Permalink
Merge pull request #104 from jharrington22/make-install
Browse files Browse the repository at this point in the history
Move main.go to moactl directory, add make install target
  • Loading branch information
openshift-merge-robot authored Oct 8, 2020
2 parents 347aba0 + 0d336bf commit 379f2e5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ unexport GOFLAGS

.PHONY: build
moactl: generate
go build .
go build ./cmd/moactl

.PHONY: test
test:
go test ./...

.PHONY: install
install:
go install ./cmd/moactl

.PHONY: fmt
fmt:
gofmt -s -l -w cmd pkg
Expand Down
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,34 @@ Once the cluster is uninstalled, you can clean up your CloudFormation stack (thi
moactl init --delete-stack
```

## Build from source

If you'd like to build this project from source use the following steps:

1. Checkout the repostiory into your `$GOPATH`

```
go get -u github.com/openshift/moactl
```

2. `cd` to the checkout out source directory

```
cd $GOPATH/src/github.com/openshift/moactl
```

3. Install the binary (This will install to `$GOPATH/bin`)

```
make install
```

NOTE: If you don't have `$GOPATH/bin` in your `$PATH` you need to add it or move `moactl` to a standard system directory eg. for Linux/OSX:

```
sudo mv $GOPATH/bin/moactl /usr/local/bin
```

## Have you got feedback?

We want to hear it. [Open and issue](https://github.com/openshift/moactl/issues/new) against the repo and someone from the team will be in touch.
File renamed without changes.

0 comments on commit 379f2e5

Please sign in to comment.