From: Dave Murphy Date: Mon, 15 Dec 2014 15:39:16 +0000 (+0000) Subject: check for ImageMagick and fail gracefully X-Git-Tag: v0.5.0~36^2~1^2 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=de38b29ed4d8902c1a7d732da6af43fc7004f279;p=corbenik%2Fctrulib.git check for ImageMagick and fail gracefully --- diff --git a/examples/graphics/bitmap/24bit-color/Makefile b/examples/graphics/bitmap/24bit-color/Makefile index 2f1f54a..ffdb5a8 100755 --- a/examples/graphics/bitmap/24bit-color/Makefile +++ b/examples/graphics/bitmap/24bit-color/Makefile @@ -117,11 +117,26 @@ else export APP_ICON := $(TOPDIR)/$(ICON) endif +IMAGEMAGICK := $(shell which convert) + + .PHONY: $(BUILD) clean all #--------------------------------------------------------------------------------- +ifeq ($(strip $(IMAGEMAGICK)),) + +all: + @echo "Image Magick not found!" + @echo + @echo "Please install Image Magick from http://www.imagemagick.org/ to build this example" + +else + all: $(BUILD) +endif + +#--------------------------------------------------------------------------------- $(BUILD): @[ -d $@ ] || mkdir -p $@ @make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile