From 9bb9ce5e9deb976a47276dcadf138dc2e8ef9cc8 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 3 Aug 2016 09:03:25 +0200 Subject: [PATCH] make: auto-detect flavour if possible --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 90696325b..cfc5cf53d 100644 --- a/Makefile +++ b/Makefile @@ -47,11 +47,15 @@ CORE_HASH= ${CORE_COMMIT:C/^.*-//1} CORE_ABI?= 16.7 -.if "${FLAVOUR}" == OpenSSL || "${FLAVOUR}" == "" +.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