diff --git a/check_libs.mk b/check_libs.mk index fd30b353fd5f46e76e14a826c18dce53cd617297..0acea32a0a00bb97bd650b8e008ae158c090f2f7 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