summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5eeff5)
raw | patch | inline | side by side (parent: b5eeff5)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 16 May 2006 15:32:24 +0000 (17:32 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Tue, 16 May 2006 15:32:24 +0000 (17:32 +0200) |
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index c3e2a1151409fa35a7a968d34452023a63fe7037..4d417c5614b58586446fb4ef718debd984b49914 100644 (file)
--- a/Makefile
+++ b/Makefile
PREFIX = $(HOME)
LDFLAGS = -lcurses
-CFLAGS = '-DVERSION="$(VERSION)"' -Wall
+CFLAGS = -Wall
DFLAGS = -g -DDEBUG
PROGS = tig
DOCS = tig.1.txt tig.1.html tig.1 README.html
-VERSION = $(shell git-describe)
+
+ifneq (,$(wildcard .git))
+CFLAGS += '-DVERSION="$(shell git-describe)"'
+endif
all: $(PROGS)
all-debug: $(PROGS)