Merge pull request #136 from rafalste/improve_python_check
Improve check for Python 3 in Makefile
This commit is contained in:
commit
be769d7a6d
@ -7,7 +7,7 @@ CASCTL_DIR = /lib/opencas
|
|||||||
UDEVRULES_DIR = /lib/udev/rules.d
|
UDEVRULES_DIR = /lib/udev/rules.d
|
||||||
UDEV:=$(shell which udevadm)
|
UDEV:=$(shell which udevadm)
|
||||||
SYSTEMCTL := $(shell which systemctl)
|
SYSTEMCTL := $(shell which systemctl)
|
||||||
PYTHON3 := $(shell which python3 &> /dev/null && echo 1)
|
PYTHON3 := $(shell which python3)
|
||||||
|
|
||||||
ifeq (, $(shell which systemctl))
|
ifeq (, $(shell which systemctl))
|
||||||
define cas_install
|
define cas_install
|
||||||
@ -33,7 +33,7 @@ endif
|
|||||||
all: ;
|
all: ;
|
||||||
|
|
||||||
install:
|
install:
|
||||||
ifneq (1, $(PYTHON3))
|
ifeq (, $(PYTHON3))
|
||||||
$(error package 'python3' not found)
|
$(error package 'python3' not found)
|
||||||
else
|
else
|
||||||
@echo "Installing Open-CAS utils"
|
@echo "Installing Open-CAS utils"
|
||||||
|
Loading…
Reference in New Issue
Block a user