diff --git a/Makefile b/Makefile index 66c9e50..e54fe68 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ DESTDIR=public +VERSION=$(shell git describe --exact-match --tags $(shell git log -n1 --pretty='%h') || echo "git - $(shell git rev-parse --short HEAD)") help: @echo "Options:" @@ -8,4 +9,5 @@ all: install -d $(DESTDIR) install src/*.php $(DESTDIR) cp -r src/static $(DESTDIR) - install .htaccess $(DESTDIR) \ No newline at end of file + install .htaccess $(DESTDIR) + printf " ${DESTDIR}/version.php \ No newline at end of file