mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Fixed "Makefile:4: warning: undefined variable 'OS'" due the usage
of MAKEFLAGS += --warn-undefined-variables
This commit is contained in:
parent
ffe6ecf44c
commit
ff3ea28de0
2 changed files with 8 additions and 0 deletions
4
Makefile
4
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue