Skip to content

Commit

Permalink
Merge pull request #34 from Airblader/version-without-git
Browse files Browse the repository at this point in the history
Adjust Makefile to build without git
  • Loading branch information
Airblader authored Nov 22, 2018
2 parents 6ad1a8c + 5f20629 commit 4697eb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
TARGET = unclutter
VERSION = 1.4
SDIR = src
IDIR = include
ODIR = obj
Expand All @@ -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
Expand Down

0 comments on commit 4697eb1

Please sign in to comment.