Skip to content
Snippets Groups Projects
Makefile.version 403 B
Newer Older

SHA:=$(shell git log -1 --pretty=format:"%h")

# Both work. Which one is the best?
VERSION=$(shell ./node_modules/.bin/git-latest-semver-tag)
VERSION=$(shell git describe --tags)

del_version:
	rm -f src/lutilsVersion.ml

gen_version: del_version src/lutilsVersion.ml 

src/lutilsVersion.ml:
	echo "let str=\"$(VERSION)\"" > src/lutilsVersion.ml ; \
	echo "let sha=\"$(SHA)\"" >> src/lutilsVersion.ml