docs: simplify install instructions
[awesomized/ext-ion] / docs / Makefile
index adc1b332527be7c1ff4180e8be4f4a8885a464dc..19ab235126430f69f5630182f5a2f92b5e20621b 100644 (file)
@@ -1,6 +1,6 @@
 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)
 
 # ---