]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blobdiff - rpp-test-sw/Makefile.version
Change license to MIT
[pes-rpp/rpp-test-sw.git] / rpp-test-sw / Makefile.version
index 3d0a10747a8e2c8b53e4801212acaa02ae9b2190..d94774f6bd9a813ae0248453ff28d53d0f8805ff 100644 (file)
@@ -1,27 +1,27 @@
-ifeq ($(OS),Windows_NT)\r
-GIT=C:\\Program Files (x86)\\Git\\bin\\git.exe\r
-ifeq ($(shell $(GIT) version),)\r
-GIT=C:\\Program Files\\Git\\bin\\git.exe\r
-ifeq ($(shell $(GIT) version),)\r
-GIT=git.exe\r
-endif\r
-endif\r
-else # UNIX\r
-GIT=git\r
-endif\r
-\r
-VERSION:=$(shell "$(GIT)" describe)\r
-VERSION:=$(if $(VERSION),$(VERSION),unknown)\r
-\r
-ifneq ($(VERSION),unknown)\r
-# Always update version.h if we are in a git repo. Otherwise create\r
-# the file only if it does not exist.\r
-.PHONY: version.h\r
-endif\r
-\r
-version.h:\r
-ifeq ($(OS),Windows_NT)\r
-       echo #define GIT_VERSION "$(VERSION)" > $@\r
-else\r
-       echo '#define GIT_VERSION "$(VERSION)"' > $@\r
-endif\r
+ifeq ($(OS),Windows_NT)
+GIT=C:\\Program Files (x86)\\Git\\bin\\git.exe
+ifeq ($(shell $(GIT) version),)
+GIT=C:\\Program Files\\Git\\bin\\git.exe
+ifeq ($(shell $(GIT) version),)
+GIT=git.exe
+endif
+endif
+else # UNIX
+GIT=git
+endif
+
+VERSION:=$(shell "$(GIT)" describe)
+VERSION:=$(if $(VERSION),$(VERSION),unknown)
+
+ifneq ($(VERSION),unknown)
+# Always update version.h if we are in a git repo. Otherwise create
+# the file only if it does not exist.
+.PHONY: version.h
+endif
+
+version.h:
+ifeq ($(OS),Windows_NT)
+       echo #define GIT_VERSION "$(VERSION)" > $@
+else
+       echo '#define GIT_VERSION "$(VERSION)"' > $@
+endif