diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |