From 99b9844a2dd76a6e7dd173de607772aaf7c2cd69 Mon Sep 17 00:00:00 2001 From: ssube Date: Fri, 30 Aug 2019 00:26:18 -0500 Subject: [PATCH] lint(build): copy variables from std makefile --- Makefile | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index bdd0b5a..581e90b 100755 --- a/Makefile +++ b/Makefile @@ -1,36 +1,36 @@ # Git -export GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD) -export GIT_COMMIT ?= $(shell git rev-parse HEAD) -export GIT_REMOTES ?= $(shell git remote -v | awk '{ print $1; }' | sort | uniq) -export GIT_OPTIONS ?= +export GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD) +export GIT_COMMIT ?= $(shell git rev-parse HEAD) +export GIT_REMOTES ?= $(shell git remote -v | awk '{ print $1; }' | sort | uniq) +export GIT_OPTIONS ?= # CI -export CI_COMMIT_REF_SLUG ?= $(GIT_BRANCH) -export CI_COMMIT_SHA ?= $(GIT_COMMIT) -export CI_ENVIRONMENT_SLUG ?= local -export CI_JOB_ID ?= 0 -export CI_RUNNER_DESCRIPTION ?= $(shell hostname) -export CI_RUNNER_ID ?= $(shell hostname) -export CI_RUNNER_VERSION ?= 0.0.0 +export CI_COMMIT_REF_SLUG ?= $(GIT_BRANCH) +export CI_COMMIT_SHA ?= $(GIT_COMMIT) +export CI_ENVIRONMENT_SLUG ?= local +export CI_JOB_ID ?= 0 +export CI_RUNNER_DESCRIPTION ?= $(shell hostname) +export CI_RUNNER_ID ?= $(shell hostname) +export CI_RUNNER_VERSION ?= 0.0.0 # Debug -export DEBUG_BIND ?= 127.0.0.1 -export DEBUG_PORT ?= 9229 +export DEBUG_BIND ?= 127.0.0.1 +export DEBUG_PORT ?= 9229 # Paths # resolve the makefile's path and directory, from https://stackoverflow.com/a/18137056 -export MAKE_PATH ?= $(abspath $(lastword $(MAKEFILE_LIST))) -export ROOT_PATH ?= $(dir $(MAKE_PATH)) +export MAKE_PATH ?= $(abspath $(lastword $(MAKEFILE_LIST))) +export ROOT_PATH ?= $(dir $(MAKE_PATH)) export CONFIG_PATH ?= $(ROOT_PATH)/config export SCRIPT_PATH ?= $(ROOT_PATH)/scripts export SOURCE_PATH ?= $(ROOT_PATH)/src export TARGET_PATH ?= $(ROOT_PATH)/out -export TEST_PATH ?= $(ROOT_PATH)/test +export TEST_PATH ?= $(ROOT_PATH)/test # Node options -NODE_BIN := $(ROOT_PATH)/node_modules/.bin -NODE_CMD ?= $(shell env node) -NODE_DEBUG ?= --inspect-brk=$(DEBUG_BIND):$(DEBUG_PORT) --nolazy +NODE_BIN := $(ROOT_PATH)/node_modules/.bin +NODE_CMD ?= $(shell env node) +NODE_DEBUG ?= --inspect-brk=$(DEBUG_BIND):$(DEBUG_PORT) --nolazy export NODE_OPTIONS ?= --max-old-space-size=5500 # Tool options @@ -43,6 +43,7 @@ export NODE_VERSION := $(shell node -v) export RUNNER_VERSION := $(CI_RUNNER_VERSION) all: build + @echo Success! clean: ## clean up everything added by the default target clean: clean-deps clean-target