From 36ab01b35f87a616af20e8b3063a3995a119f197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20V=C3=B6llinger?= Date: Sun, 29 Dec 2013 18:56:05 +0100 Subject: Startup View Mode eingebaut. Refactoring Makefile angepasst, Es wird nun automatisch die Git Version im Plugin verwendet. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3