File: Makefile

package info (click to toggle)
golang-github-x-cray-logrus-prefixed-formatter 0.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 92 kB
  • sloc: makefile: 25
file content (19 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
NAME=logrus-prefixed-formatter
PACKAGES=$(shell go list ./...)

deps:
	@echo "--> Installing dependencies"
	@go get -d -v -t ./...

test-deps:
	@which ginkgo 2>/dev/null ; if [ $$? -eq 1 ]; then \
		go get -u -v github.com/onsi/ginkgo/ginkgo; \
	fi

test: test-deps
	@echo "--> Running tests"
	@ginkgo -r --randomizeAllSpecs --randomizeSuites --failOnPending --cover --trace --race

format:
	@echo "--> Running go fmt"
	@go fmt $(PACKAGES)