From 285f7b027b2fcc02fc1bfb00d007bb2c54a7ad1c Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 3 Aug 2016 09:12:15 +0200 Subject: [PATCH] make: better auto-detect and typo fixed --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cfc5cf53d..8f497d292 100644 --- a/Makefile +++ b/Makefile @@ -47,15 +47,14 @@ CORE_HASH= ${CORE_COMMIT:C/^.*-//1} CORE_ABI?= 16.7 +_FLAVOUR!= /usr/local/bin/openssl version +FLAVOUR?= ${_FLAVOUR:[1]} + .if "${FLAVOUR}" == OpenSSL CORE_REPOSITORY?= ${CORE_ABI}/latest .elif "${FLAVOUR}" == LibreSSL CORE_REPOSITORY?= ${CORE_ABI}/libressl .else -. if "${FLAVOUR}" == "" -_FLAVOUR!= /usr/local/bin/openssl version -FLAVOUR= ${_FLAVOUR:[0]} -. endif CORE_REPOSITORY?= ${FLAVOUR} .endif