diff options
| author | John Whittington <git@jbrengineering.co.uk> | 2020-08-06 12:38:03 +0200 |
|---|---|---|
| committer | John Whittington <git@jbrengineering.co.uk> | 2020-08-06 12:42:47 +0200 |
| commit | 185a1e9e3527794a49451915009fb48d9e678080 (patch) | |
| tree | 59f19d35bafe54dbaca68f9e7f6c40f187573a7d /Common.mk | |
| parent | 264f8f604a2c29b7bd66a1e0d11f263db7582702 (diff) | |
document GREP_CMD
Diffstat (limited to 'Common.mk')
| -rw-r--r-- | Common.mk | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -8,8 +8,8 @@ dir_if_exists = $(if $(wildcard $(1)$(2)),$(1)) # result = $(call READ_BOARD_TXT, 'boardname', 'parameter') PARSE_BOARD = $(shell if [ -f $(BOARDS_TXT) ]; \ then \ - $(GREP) -Ev '^\#' $(BOARDS_TXT) | \ - $(GREP) -E "^[ \t]*$(1).$(2)=" | \ + $(GREP_CMD) -Ev '^\#' $(BOARDS_TXT) | \ + $(GREP_CMD) -E "^[ \t]*$(1).$(2)=" | \ cut -d = -f 2- | \ cut -d : -f 2; \ fi) @@ -48,20 +48,20 @@ $(call arduino_output,$(call ardmk_include) Configuration:) ifeq ($(OS),Windows_NT) CURRENT_OS = WINDOWS - GREP := grep + GREP_CMD := grep else UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Linux) CURRENT_OS = LINUX - GREP := grep + GREP_CMD := grep endif ifeq ($(UNAME_S),Darwin) CURRENT_OS = MAC ifeq (, $(shell which ggrep)) echo $(info Using macOS BSD grep, please install GNU grep to avoid warnings) - GREP := grep + GREP_CMD := grep else - GREP := ggrep + GREP_CMD := ggrep endif endif endif |
