summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 810f007)
raw | patch | inline | side by side (parent: 810f007)
author | James Bowes <jbowes@dangerouslyinc.com> | |
Sat, 2 Jun 2007 17:14:50 +0000 (13:14 -0400) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 2 Jun 2007 18:28:59 +0000 (20:28 +0200) |
If someone defined their own CFLAGS, they would have to include a -DVERSION=
as well (or else get unknown-version as the version).
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
as well (or else get unknown-version as the version).
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index 61fc86b246f9615996ec9e4eb78c5520b32f99f1..91cb097ed54f261ff38b4cee8215b245f57b4429 100644 (file)
--- a/Makefile
+++ b/Makefile
RPM_VERSION = $(subst -,.,$(VERSION))
LDLIBS = -lcurses
-CFLAGS = -Wall -O2 '-DVERSION="$(VERSION)"'
+CFLAGS = -Wall -O2
DFLAGS = -g -DDEBUG -Werror
PROGS = tig
MANDOC = tig.1 tigrc.5
ALLDOC = $(MANDOC) $(HTMLDOC) manual.html-chunked manual.pdf
TARNAME = tig-$(RPM_VERSION)
+override CFLAGS += '-DVERSION="$(VERSION)"'
+
all: $(PROGS)
all-debug: $(PROGS)
all-debug: CFLAGS += $(DFLAGS)