|
1 |
| -SHELL := /usr/bin/env bash -Eeu -o pipefail |
2 |
| -REPO_ROOT := $(shell git rev-parse --show-toplevel || pwd || echo '.') |
3 |
| -REPO_LOCAL_DIR := ${REPO_ROOT}/.local |
4 |
| -REPO_TMP_DIR := ${REPO_ROOT}/.tmp |
5 |
| -PRE_PUSH := ${REPO_ROOT}/.git/hooks/pre-push |
6 |
| -GIT_TAG_LATEST := $(shell git describe --tags --abbrev=0) |
7 |
| -GIT_BRANCH_CURRENT := $(shell git rev-parse --abbrev-ref HEAD) |
8 |
| -GO_MODULE_NAME := github.com/kunitsucom/ccc |
9 |
| -BUILD_VERSION := $(shell git describe --tags --exact-match HEAD 2>/dev/null || git rev-parse --short HEAD) |
10 |
| -BUILD_REVISION := $(shell git rev-parse HEAD) |
11 |
| -BUILD_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | tr / -) |
12 |
| -BUILD_TIMESTAMP := $(shell git log -n 1 --format='%cI') |
| 1 | +SHELL := /usr/bin/env bash -Eeu -o pipefail |
| 2 | +REPO_ROOT := $(shell git rev-parse --show-toplevel || pwd || echo '.') |
| 3 | +REPO_LOCAL_DIR := ${REPO_ROOT}/.local |
| 4 | +REPO_TMP_DIR := ${REPO_ROOT}/.tmp |
| 5 | +PRE_PUSH := ${REPO_ROOT}/.git/hooks/pre-push |
| 6 | +GIT_TAG_LATEST := $(shell git describe --tags --abbrev=0) |
| 7 | +GIT_BRANCH_CURRENT := $(shell git rev-parse --abbrev-ref HEAD) |
| 8 | +GO_MODULE_NAME := github.com/kunitsucom/ccc |
| 9 | +BUILD_VERSION := $(shell git describe --tags --exact-match HEAD 2>/dev/null || git rev-parse --short HEAD) |
| 10 | +BUILD_REVISION := $(shell git rev-parse HEAD) |
| 11 | +BUILD_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | tr / -) |
| 12 | +BUILD_TIMESTAMP := $(shell git log -n 1 --format='%cI') |
13 | 13 |
|
14 | 14 | export PATH := ${REPO_LOCAL_DIR}/bin:${REPO_ROOT}/.bin:${PATH}
|
15 | 15 |
|
|
0 commit comments