check for ImageMagick and fail gracefully
This commit is contained in:
parent
83cdef027a
commit
de38b29ed4
@ -117,11 +117,26 @@ else
|
|||||||
export APP_ICON := $(TOPDIR)/$(ICON)
|
export APP_ICON := $(TOPDIR)/$(ICON)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
IMAGEMAGICK := $(shell which convert)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: $(BUILD) clean all
|
.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)
|
all: $(BUILD)
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
$(BUILD):
|
$(BUILD):
|
||||||
@[ -d $@ ] || mkdir -p $@
|
@[ -d $@ ] || mkdir -p $@
|
||||||
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
||||||
|
Loading…
Reference in New Issue
Block a user