]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Add the version to the Makefile
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 26 Sep 2011 18:04:50 +0000 (11:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 26 Sep 2011 18:04:50 +0000 (11:04 -0700)
Not quite the same format as for the kernel, but I want to do the normal
"edit the makefile before making a release" model that I'm used to.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Makefile
gtk-gui.c

index e93d03030c0f68ac3a568a3bcc96182078136a61..628f116d7dfeb874aefe1d4918dbea52b77c0f19 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+VERSION=1.0
+
 CC=gcc
 CFLAGS=-Wall -Wno-pointer-sign -g
 INSTALL=install
@@ -68,6 +70,7 @@ libdivecomputer.o: libdivecomputer.c dive.h display.h display-gtk.h libdivecompu
 gtk-gui.o: gtk-gui.c dive.h display.h divelist.h display-gtk.h libdivecomputer.h
        $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0 gconf-2.0` \
                        -I$(LIBDIVECOMPUTERINCLUDES) \
+                       -DVERSION_STRING='"v$(VERSION)"' \
                        -c gtk-gui.c
 
 uemis.o: uemis.c uemis.h
index e15c94424fcd90014fb855ff67eb083de1a87377..519bca50743991b1339d2d37f740cb493a158d4f 100644 (file)
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -362,7 +362,7 @@ static void about_dialog(GtkWidget *w, gpointer data)
                "program-name", "SubSurface",
                "comments", "Half-arsed divelog software in C",
                "license", "GPLv2",
-               "version", "1.0",
+               "version", VERSION_STRING,
                "copyright", "Linus Torvalds 2011",
                /* Must be last: */
                logo_property, logo,