From 2c1b0853de1634e92953673ab0e42dd68bab4fb8 Mon Sep 17 00:00:00 2001 From: KNikola Date: Fri, 18 Jan 2019 13:55:04 +0100 Subject: [PATCH] added libmagic linux system dependency library to check_libs.mk --- check_libs.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/check_libs.mk b/check_libs.mk index fd30b35..0acea32 100644 --- a/check_libs.mk +++ b/check_libs.mk @@ -111,4 +111,17 @@ ifeq ($(shell brew ls --versions libmagic),) else @echo "Found libmagic version: $(shell brew ls --versions libmagic). Skipping" endif + +endif +ifeq ($(CCFLAGS),LINUX) +ifeq ($(shell apt list --installed | grep libmagic-dev),) + @echo "${RED}--------------------------------------------------------------------------------------------${NC}" + @echo "---> ${RED}LIBMAGIC not found. Please use the command below to install it. ${NC}\n" + @echo "\t${RED}apt install libmagic-dev${NC}" + @echo "" + @echo "${RED}--------------------------------------------------------------------------------------------${NC}" + exit 1 +else + @echo "Found libmagic-dev. Skipping" +endif endif \ No newline at end of file -- GitLab