Skip to content

Commit

Permalink
Makefile: Make build the default target
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Mendez <[email protected]>
  • Loading branch information
mmlb authored and splaspood committed Aug 11, 2023
1 parent c3ca265 commit af3c30a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ GIT_SUMMARY := $(shell git describe --tags --dirty --always)
VERSION := $(shell git describe --tags 2> /dev/null)
BUILD_DATE := $(shell date +%s)

lint:
golangci-lint run --config .golangci.yml --timeout=5m --out-${NO_FUTURE}format colored-line-number

test: lint
CGO_ENABLED=0 $(GOBINARY) test -timeout 1m -v -covermode=atomic ./...

build:
GOOS=linux GOARCH=$(GOARCH) $(GOBINARY) build -o vogelkop \
-ldflags \
Expand All @@ -22,3 +16,8 @@ build:
-X $(LDFLAG_LOCATION).GitSummary=$(GIT_SUMMARY) \
-X $(LDFLAG_LOCATION).Version=$(VERSION) \
-X $(LDFLAG_LOCATION).BuildDate=$(BUILD_DATE)"
lint:
golangci-lint run --config .golangci.yml --timeout=5m --out-${NO_FUTURE}format colored-line-number

test: lint
CGO_ENABLED=0 $(GOBINARY) test -timeout 1m -v -covermode=atomic ./...

0 comments on commit af3c30a

Please sign in to comment.