forked from newrelic/deployment-marker-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (17 loc) · 738 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
#############################
# Global vars
#############################
PROJECT_NAME := $(shell basename $(shell pwd))
PROJECT_VER ?= $(shell git describe --tags --always --dirty | sed -e '/^v/s/^v\(.*\)$$/\1/g')
# Last released version (not dirty) without leading v
PROJECT_VER_TAGGED := $(shell git describe --tags --always --abbrev=0 | sed -e '/^v/s/^v\(.*\)$$/\1/g')
SRCDIR ?= .
RELEASE_SCRIPT ?= ./scripts/release.sh
all:
@echo "=== $(PROJECT_NAME) === [ all ]: Supported targets:"
@echo " release - Create new release"
# Example usage: make release version=0.11.0
release:
@echo "=== $(PROJECT_NAME) === [ release ]: Generating release."
$(RELEASE_SCRIPT) $(version)
.PHONY: all build