diff --git a/Makefile b/Makefile index c970ca1..0f8c8e2 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ @./bin/version-patch.sh "$(filter-out $@,$(MAKECMDGOALS))" get-version: ## Get the last version of a directory (useful to deployment) - @git tag | grep "$(filter-out $@,$(MAKECMDGOALS))" | tail -1 + @git tag | grep "$(filter-out $@,$(MAKECMDGOALS))" | sort -V | tail -1 examples: ## Launch examples for a directory, e.g. make examples mapping-tools @restcli --full "$(filter-out $@,$(MAKECMDGOALS))/examples.http"