mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add the version to the Makefile
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>
This commit is contained in:
parent
13ef2fbbe5
commit
5c3bdd9fc8
2 changed files with 4 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -1,3 +1,5 @@
|
||||||
|
VERSION=1.0
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -Wno-pointer-sign -g
|
CFLAGS=-Wall -Wno-pointer-sign -g
|
||||||
INSTALL=install
|
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
|
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` \
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0 gconf-2.0` \
|
||||||
-I$(LIBDIVECOMPUTERINCLUDES) \
|
-I$(LIBDIVECOMPUTERINCLUDES) \
|
||||||
|
-DVERSION_STRING='"v$(VERSION)"' \
|
||||||
-c gtk-gui.c
|
-c gtk-gui.c
|
||||||
|
|
||||||
uemis.o: uemis.c uemis.h
|
uemis.o: uemis.c uemis.h
|
||||||
|
|
|
@ -362,7 +362,7 @@ static void about_dialog(GtkWidget *w, gpointer data)
|
||||||
"program-name", "SubSurface",
|
"program-name", "SubSurface",
|
||||||
"comments", "Half-arsed divelog software in C",
|
"comments", "Half-arsed divelog software in C",
|
||||||
"license", "GPLv2",
|
"license", "GPLv2",
|
||||||
"version", "1.0",
|
"version", VERSION_STRING,
|
||||||
"copyright", "Linus Torvalds 2011",
|
"copyright", "Linus Torvalds 2011",
|
||||||
/* Must be last: */
|
/* Must be last: */
|
||||||
logo_property, logo,
|
logo_property, logo,
|
||||||
|
|
Loading…
Add table
Reference in a new issue