]> git.sur5r.net Git - i3/i3status/blobdiff - Makefile
Fix i3status to compile with -fno-common (#185)
[i3/i3status] / Makefile
index 379d7c33655371944e557be71d3b7a7f6970c338..2035b0d252cfc99b2757f026d361d9ee5caf9033 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ LIBS+=-lpthread
 
 ifeq ($(wildcard .git),)
   # not in git repository
-  VERSION := '$(shell [ -f $(TOPDIR)/VERSION ] && cat $(TOPDIR)/VERSION)'
+  VERSION := $(shell [ -f $(TOPDIR)/I3STATUS_VERSION ] && cat $(TOPDIR)/I3STATUS_VERSION | cut -d '-' -f 1)
   I3STATUS_VERSION := '$(shell [ -f $(TOPDIR)/I3STATUS_VERSION ] && cat $(TOPDIR)/I3STATUS_VERSION)'
 else
   VERSION:=$(shell git describe --tags --abbrev=0)