add RELEASE in config.mk

This commit is contained in:
Julien Danjou 2007-10-29 17:16:33 +01:00
parent 7476a9712a
commit 0c826b8ab3
2 changed files with 3 additions and 2 deletions

View File

@ -257,7 +257,7 @@ parse_config(Display * disp, int scr,const char *confpatharg, awesome_config *aw
a_strcat(confpath, confpath_len, AWESOME_CONFIG_FILE);
}
a_strcpy(awesomeconf->statustext, sizeof(awesomeconf->statustext), "awesome-" VERSION);
a_strcpy(awesomeconf->statustext, sizeof(awesomeconf->statustext), "awesome-" VERSION " (" RELEASE ")");
/* store display */
awesomeconf->display = disp;

View File

@ -1,5 +1,6 @@
# awesome version
VERSION = $(shell git describe 2>/dev/null || echo devel)
RELEASE = "Productivity Breaker"
# Customize below to fit your system
@ -18,7 +19,7 @@ INCS = -I. -I/usr/include -I${X11INC} `pkg-config --cflags libconfuse xft cairo`
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `pkg-config --libs libconfuse xft cairo` -lXext -lXrandr -lXinerama
# flags
CFLAGS = -fgnu89-inline -std=gnu99 -ggdb3 -pipe -Wall -Wextra -W -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused -Wuninitialized -Winit-self -Wpointer-arith -Wredundant-decls -Wno-format-zero-length -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn -O3 ${INCS} -DVERSION=\"${VERSION}\"
CFLAGS = -fgnu89-inline -std=gnu99 -ggdb3 -pipe -Wall -Wextra -W -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused -Wuninitialized -Winit-self -Wpointer-arith -Wredundant-decls -Wno-format-zero-length -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn -O3 ${INCS} -DVERSION=\"${VERSION}\" -DRELEASE=\"${RELEASE}\"
LDFLAGS = -ggdb3 ${LIBS}
# compiler and linker