From 5f206298421bfd03bfd1c78d7aad87dd556030a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20B=C3=BCrk?= Date: Thu, 22 Nov 2018 12:57:44 +0100 Subject: [PATCH] Adjust Makefile to build without git --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a45aff9..da6230b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ TARGET = unclutter +VERSION = 1.4 SDIR = src IDIR = include ODIR = obj @@ -13,7 +14,7 @@ CC = gcc LD = $(CC) PKG_CONFIG = pkg-config -CPPFLAGS += -D'__VERSION="$(shell git describe --all --long --always)"' "-I$(IDIR)" +CPPFLAGS += -D'__VERSION="${VERSION}"' "-I$(IDIR)" CFLAGS += -std=gnu99 CFLAGS += -Wall -Wundef -Wshadow -Wformat-security