diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -12,7 +12,8 @@ PLUGIN = epgfixer ### The version number of this plugin (taken from the main source file): -VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g') +VERSION = $(shell grep 'static const char VERSION\[\] *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g') +GITTAG = $(shell git describe --always 2>/dev/null) ### The C++ compiler and options: @@ -55,6 +56,10 @@ INCLUDES += -I$(VDRDIR)/include DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' +ifneq ($(strip $(GITTAG)),) +DEFINES += -DGITVERSION='"-GIT-$(GITTAG)"' +endif + ### The object files (add further files here): OBJS = $(PLUGIN).o charset.o config.o epghandler.o regexp.o setup_menu.o tools.o @@ -126,5 +131,4 @@ clean: @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot cppcheck: $(OBJS) - @cppcheck --enable=information,style,unusedFunction -v -f $(OBJS:%.o=%.c) - + @cppcheck --enable=information,style,unusedFunction -v -f $(OBJS:%.o=%.c) |
