Merge pull request #491 from evandroforks/fix_unused_variable_warning

Fixed "Makefile:4: warning: undefined variable 'OS'"
This commit is contained in:
Damien Elmes 2020-03-04 21:11:39 +10:00 committed by GitHub
commit 8f2c08e656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,9 @@
SHELL := /bin/bash
ifndef OS
OS := unknown
endif
ifeq ($(OS),Windows_NT)
ifndef ACTIVATE_SCRIPT
ACTIVATE_SCRIPT := pyenv/Scripts/activate

View File

@ -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