Skip to content

Commit

Permalink
Merge pull request #48 from christophd/pr/clean-yaks-binaries
Browse files Browse the repository at this point in the history
chore: Also remove built yaks binaries during clean operation
  • Loading branch information
christophd authored Feb 25, 2020
2 parents 95ef51f + ae4e9b0 commit 635eed1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.

IMAGE_NAME := docker.io/yaks/yaks
VERSION := 0.0.1
VERSION := 0.0.2

GOLDFLAGS += -X main.GitCommit=$(GIT_COMMIT)
GOFLAGS = -ldflags "$(GOLDFLAGS)" -gcflags=-trimpath=$(GO_PATH) -asmflags=-trimpath=$(GO_PATH)
Expand All @@ -29,7 +29,8 @@ generate:

build: build-yaks

test: build
test:
build
go test ./...

build-yaks:
Expand Down
5 changes: 5 additions & 0 deletions hack/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ if [ "$#" -ne 0 ]; then
exit 1
fi

# remove built binaries
rm -f yaks
rm -f yaks-*

cd ${location}/../build

#remove build outputs
rm -rf _maven_repository
mkdir -p _maven_repository
rm -rf _maven_project
Expand Down

0 comments on commit 635eed1

Please sign in to comment.