Commit ab846a65 authored by Marek Vavruša's avatar Marek Vavruša

build: better binary finding

parent 88634db6
# Project
MAJOR := 15
MINOR := 04
PATCH := 0
# Paths
PREFIX := /usr/local
......
......@@ -90,7 +90,10 @@ endef
# Find binary
define find_bin
ifeq ($$(strip $$($(1)_BIN)),)
HAS_$(1) := $(shell $(1) --version > /dev/null 2>&1 && echo yes || echo no)
$(1)_BIN := $(shell which $(1))
endif
ifeq ($$(strip $$($(1)_BIN)),)
HAS_$(1) := no
else
HAS_$(1) := yes
$(1) := $$($(1)_BIN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment