rename ROOT var to CS_ROOT (#1755)
This commit is contained in:
parent
1f06f242cc
commit
1ba6c67ff2
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -2,11 +2,11 @@
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
SHELL := pwsh.exe
|
SHELL := pwsh.exe
|
||||||
.SHELLFLAGS := -NoProfile -Command
|
.SHELLFLAGS := -NoProfile -Command
|
||||||
ROOT = $(shell (Get-Location).Path)
|
CS_ROOT = $(shell (Get-Location).Path)
|
||||||
SYSTEM = windows
|
SYSTEM = windows
|
||||||
EXT = .exe
|
EXT = .exe
|
||||||
else
|
else
|
||||||
ROOT ?= $(shell pwd)
|
CS_ROOT ?= $(shell pwd)
|
||||||
SYSTEM ?= $(shell uname -s | tr '[A-Z]' '[a-z]')
|
SYSTEM ?= $(shell uname -s | tr '[A-Z]' '[a-z]')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(OS), Windows_NT)
|
ifneq ($(OS), Windows_NT)
|
||||||
include $(ROOT)/platform/unix_common.mk
|
include $(CS_ROOT)/platform/unix_common.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CROWDSEC_FOLDER = ./cmd/crowdsec
|
CROWDSEC_FOLDER = ./cmd/crowdsec
|
||||||
|
@ -93,7 +93,7 @@ ifneq ($(OS), Windows_NT)
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# This needs Set-ExecutionPolicy -Scope CurrentUser Unrestricted
|
# This needs Set-ExecutionPolicy -Scope CurrentUser Unrestricted
|
||||||
@$(ROOT)/scripts/check_go_version.ps1 $(MINIMUM_SUPPORTED_GO_MAJOR_VERSION) $(MINIMUM_SUPPORTED_GO_MINOR_VERSION)
|
@$(CS_ROOT)/scripts/check_go_version.ps1 $(MINIMUM_SUPPORTED_GO_MAJOR_VERSION) $(MINIMUM_SUPPORTED_GO_MINOR_VERSION)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
Loading…
Reference in a new issue