From 586eec61ad4692cc4c78e0e8d35091a83e027d8b Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 6 Apr 2010 09:04:40 +0000 Subject: version 0.1 we include version number in binary --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a6c516a..62c42db 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ +VERSION=0.1 +GIT_VERSION := $(shell [ -d .git ] && echo "-$$(git describe --always)") CFLAGS ?= -g +CFLAGS += -DVERSION=\"$(VERSION)$(GIT_VERSION)\" all: sircbot @@ -11,4 +14,5 @@ sircbot: $(sircbot_OBJ) .c.o: $(CC) $(CFLAGS) -c $^ - +clean: + rm -rf sircbot $(sircbot_OBJ) -- cgit v1.2.3