forked from newrelic/go-insights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (25 loc) · 780 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#############################
# Global vars
#############################
PROJECT_NAME := $(shell basename $(shell pwd))
PROJECT_VER := $(shell git describe --tags --always --dirty | sed -e '/^v/s/^v\(.*\)$$/\1/g') # Strip leading 'v' if found
SRCDIR ?= .
GO = go
#############################
# Targets
#############################
all: build
# Humans running make:
build: check-version clean lint test cover-report compile
# Build command for CI tooling
build-ci: check-version clean lint test compile-only
# All clean commands
clean: clean-cover clean-compile
# Import fragments
include build/compile.mk
include build/deps.mk
include build/document.mk
include build/lint.mk
include build/test.mk
include build/util.mk
.PHONY: all build build-ci clean