From bce599038ceac361c09e9d715e8c94716d6c3d0c Mon Sep 17 00:00:00 2001
From: Bert <ber.t@gmx.com>
Date: Sun, 23 Jan 2011 17:27:44 +0100
Subject: Moved VERSION macro into Makefile

---
 Makefile | 4 +++-
 sxiv.h   | 2 --
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 326ecd4..253d015 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
 all: sxiv
 
+VERSION=git-20110123
+
 CC?=gcc
 PREFIX?=/usr/local
-CFLAGS+= -std=c99 -Wall -pedantic -g
+CFLAGS+= -std=c99 -Wall -pedantic -DVERSION=\"$(VERSION)\"
 LDFLAGS+= 
 LIBS+= -lX11 -lImlib2
 
diff --git a/sxiv.h b/sxiv.h
index 824cfbb..837ae73 100644
--- a/sxiv.h
+++ b/sxiv.h
@@ -21,8 +21,6 @@
 
 #include "config.h"
 
-#define VERSION "git-20110123"
-
 #define ABS(a)   ((a) < 0 ? (-(a)) : (a))
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
-- 
cgit v1.2.3