X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Makefile;h=440328a60ec11b6b840e014dd21b1743080ffbbc;hb=a2fd4bd07424a1df80c5ee7bc9f958e4ab6bafcd;hp=379d7c33655371944e557be71d3b7a7f6970c338;hpb=4a37333cadcd049569148ce2b0ed56c37609b401;p=i3%2Fi3status diff --git a/Makefile b/Makefile index 379d7c3..440328a 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,8 @@ LIBS+=-lpthread ifeq ($(wildcard .git),) # not in git repository - VERSION := '$(shell [ -f $(TOPDIR)/VERSION ] && cat $(TOPDIR)/VERSION)' - I3STATUS_VERSION := '$(shell [ -f $(TOPDIR)/I3STATUS_VERSION ] && cat $(TOPDIR)/I3STATUS_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) I3STATUS_VERSION:="$(shell git describe --tags --always) ($(shell git log --pretty=format:%cd --date=short -n1))"