Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
Clean up Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Olsson committed Sep 13, 2016
1 parent 0df6726 commit 008a5eb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ BINARY=goddd

DOCKER_IMAGE_NAME=marcusolsson/goddd

default:
@go build -o ${BINARY}
.DEFAULT_GOAL: ${BINARY}

build: test lint vet
${BINARY}:
@CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ${BINARY} .

check: test lint vet

test:
@go test -race -v $(shell go list ./... | grep -v /vendor/)

Expand All @@ -23,10 +24,10 @@ install:
clean:
@if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi

docker-build: build
docker-build: ${BINARY}
@docker build -t ${DOCKER_IMAGE_NAME} .

docker-push:
@docker push ${DOCKER_IMAGE_NAME}

.PHONY: test vet install clean docker-build docker-push
.PHONY: test vet install clean docker-push

0 comments on commit 008a5eb

Please sign in to comment.