summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Völlinger <zerov83@gmail.com>2013-12-29 18:56:05 +0100
committerChristian Völlinger <zerov83@gmail.com>2013-12-29 18:56:05 +0100
commit36ab01b35f87a616af20e8b3063a3995a119f197 (patch)
tree3b179cb769a610b40940da0835f911d4040a716d /Makefile
parentb35c5a69889ee3eeb4d3ec136523746fe8ebe233 (diff)
downloadvdr-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--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5311afc..85d170a 100644
--- a/Makefile
+++ b/Makefile
@@ -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: