From ff3ea28de05c5a5423be03802fe06174c2f0193e Mon Sep 17 00:00:00 2001 From: evandrocoan Date: Tue, 3 Mar 2020 20:51:24 -0300 Subject: [PATCH] Fixed "Makefile:4: warning: undefined variable 'OS'" due the usage of MAKEFLAGS += --warn-undefined-variables --- Makefile | 4 ++++ rspy/Makefile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 7fa1e22c2..fb8fe5d41 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ SHELL := /bin/bash +ifndef OS + OS := unknown +endif + ifeq ($(OS),Windows_NT) ifndef ACTIVATE_SCRIPT ACTIVATE_SCRIPT := pyenv/Scripts/activate diff --git a/rspy/Makefile b/rspy/Makefile index e961fca97..078e91386 100644 --- a/rspy/Makefile +++ b/rspy/Makefile @@ -1,6 +1,10 @@ SHELL := /bin/bash FIND := $(if $(wildcard /bin/find),/bin/find,/usr/bin/find) +ifndef OS + OS := unknown +endif + ifeq ($(OS),Windows_NT) ifndef PYTHON_BIN PYTHON_BIN := python