PHP ?= php
COMPOSER ?= composer
-TAG := $(shell (git describe --tags --exact-match --match=v[0-9]* 2>/dev/null || echo v0.0) | cut -d. -f-2)
+TAG := $(shell (git describe --tags --match=v[0-9]* 2>/dev/null || git tag --sort=authordate | egrep ^v[0-9] | tail -n1) | cut -d. -f-2)
# ---