summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 0dbb948..1c4ae95 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -45,8 +45,8 @@ endif
AR=ar
RANLIB=ranlib
-QUANTUMDEPTH = $(lastword $(shell MagickCore-config --version))
-MAGICKVERSION = $(subst .,,$(firstword $(shell MagickCore-config --version)))
+QUANTUMDEPTH = $(word 5,$(shell convert --version))
+MAGICKVERSION = $(firstword $(subst -, ,$(subst .,,$(word 3,$(shell convert --version)))))
ifneq ("$(QUANTUMDEPTH)","Q16")
VERSIONS+= -version=$(subst Q,Quantum,$(QUANTUMDEPTH))