Skip to content

Commit

Permalink
Added makefile with build and install commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sajayantony committed Aug 18, 2021
1 parent 3eb753a commit 5aff12f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin

25 changes: 25 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
BINARY_NAME=hora
INSTALL_DIR=~/.hora
all: build test

build: build-cli build-plugins

build-cli:
go build -o ./bin/${BINARY_NAME} ./cmd/hora


build-plugins:
go build -o ./bin/plugins/ ./plugins/referrerstore/ociregistry
go build -o ./bin/plugins/ ./plugins/verifier/nv2verifier
go build -o ./bin/plugins/ ./plugins/verifier/sbom

install:
mkdir -p ${INSTALL_DIR}
cp -r ./bin ${INSTALL_DIR}

test:
go test -v ./cmd/hora

clean:
go clean
rm ./bin/${BINARY_NAME}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ go build -o ~/bin ./cmd/hora
```
go build -o ~/.hora/plugins ./plugins/referrerstore/ociregistry
go build -o ~/.hora/plugins ./plugins/verifier/nv2verifier
go build -o ~/.hora/plugins ./plugins/sbom
go build -o ~/.hora/plugins ./plugins/verifier/sbom
```

- Update the ```./config/config.json``` to the certs folder and copy it to home dir
Expand Down

0 comments on commit 5aff12f

Please sign in to comment.