diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-14 17:38:16 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-14 17:38:16 -0500 |
commit | 6bb99d8fa7fce2504bf5d5a57629db6b9f5babba (patch) | |
tree | bcdc69da3805ff03cf6f7083b3dea1ff602026ce /Makefile | |
parent | 9cba8770a2f08457735556b480164fcea2853de8 (diff) | |
download | bfs-6bb99d8fa7fce2504bf5d5a57629db6b9f5babba.tar.xz |
Set the version to 0.67.0.67
For now, version numbers are the fraction of GNU find features
supported.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |