From 6bb99d8fa7fce2504bf5d5a57629db6b9f5babba Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 14 Feb 2016 17:38:16 -0500 Subject: Set the version to 0.67. For now, version numbers are the fraction of GNU find features supported. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 02f6554..c98a51e 100644 --- a/Makefile +++ b/Makefile @@ -9,13 +9,19 @@ # the COPYING file or http://www.wtfpl.net/ for more details. # ##################################################################### +ifeq ($(wildcard .git),) +VERSION := 0.67 +else +VERSION := $(shell git describe --always) +endif + CC ?= gcc CFLAGS ?= -g -Wall LDFLAGS ?= DEPFLAGS ?= -MD -MP -MF $(@:.o=.d) RM ?= rm -f -LOCAL_CPPFLAGS := -D_DEFAULT_SOURCE -D_GNU_SOURCE +LOCAL_CPPFLAGS := -D_DEFAULT_SOURCE -D_GNU_SOURCE -DBFS_VERSION=\"$(VERSION)\" LOCAL_CFLAGS := -std=c99 ALL_CPPFLAGS = $(LOCAL_CPPFLAGS) $(CPPFLAGS) -- cgit v1.2.3