diff options
author | Christian Völlinger <zerov83@gmail.com> | 2013-12-29 18:56:05 +0100 |
---|---|---|
committer | Christian Völlinger <zerov83@gmail.com> | 2013-12-29 18:56:05 +0100 |
commit | 36ab01b35f87a616af20e8b3063a3995a119f197 (patch) | |
tree | 3b179cb769a610b40940da0835f911d4040a716d /Makefile | |
parent | b35c5a69889ee3eeb4d3ec136523746fe8ebe233 (diff) | |
download | vdr-plugin-boblight-36ab01b35f87a616af20e8b3063a3995a119f197.tar.gz vdr-plugin-boblight-36ab01b35f87a616af20e8b3063a3995a119f197.tar.bz2 |
Startup View Mode eingebaut.
Refactoring
Makefile angepasst, Es wird nun automatisch die Git Version im Plugin verwendet.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -11,7 +11,8 @@ PLUGIN = vdrboblight ### The version number of this plugin (taken from the main source file): -VERSION = $(shell grep 'static const char \*VERSION *=' DVBAPI.h | awk '{ print $$6 }' | sed -e 's/[";]//g') +#VERSION = $(shell grep 'static const char \*VERSION *=' vdrboblight.h | awk '{ print $$6 }' | sed -e 's/[";]//g') +VERSION := $(shell git describe --abbrev=4 --dirty --always) ### The directory environment: @@ -78,10 +79,12 @@ INCLUDES += -I$(VDRSRC)/include endif DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' +### Define GITVERSION used in vdrboblight.c +DEFINES += -DGITVERSION='"$(VERSION)"' ### The object files (add further files here): -OBJS = $(PLUGIN).o ambithread.o ambiservice.o boblightservice.o common.o config.o +OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) ### The main target: |