From 7b4996433f90d74d5afd1ea6ab4d1997c9e2089c Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 29 Sep 2015 16:17:00 +0100 Subject: Makefile now builds stable or development version. --- Makefile | 10 ++++++++-- vdrtva-2.3.c | 2 +- vdrtva.c | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 510b394..6ac84b1 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,13 @@ DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' ### The object files (add further files here): -OBJS = $(PLUGIN).o +ifeq "2.3.0" "$(word 1, $(sort $(APIVERSION) 2.3.0))" + SOURCES = $(PLUGIN)-2.3.c + OBJS = $(PLUGIN)-2.3.o +else + SOURCES = $(PLUGIN).c + OBJS = $(PLUGIN).o +endif ### The main target: @@ -86,7 +92,7 @@ I18Npot = $(PODIR)/$(PLUGIN).pot %.mo: %.po msgfmt -c -o $@ $< -$(I18Npot): $(wildcard *.c) +$(I18Npot): $(SOURCES) xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --package-name=vdr-$(PLUGIN) --package-version=$(VERSION) --msgid-bugs-address='' -o $@ `ls $^` %.po: $(I18Npot) diff --git a/vdrtva-2.3.c b/vdrtva-2.3.c index 6df25e0..e3ed797 100644 --- a/vdrtva-2.3.c +++ b/vdrtva-2.3.c @@ -24,7 +24,7 @@ cLinks Links; cTvaLog tvalog; char *configDir; -static const char *VERSION = "0.3.3"; +static const char *VERSION = "0.3.5"; static const char *DESCRIPTION = "Series Record plugin"; static const char *MAINMENUENTRY = "Series Links"; diff --git a/vdrtva.c b/vdrtva.c index 9f38d4c..4dfd003 100644 --- a/vdrtva.c +++ b/vdrtva.c @@ -24,7 +24,7 @@ cLinks Links; cTvaLog tvalog; char *configDir; -static const char *VERSION = "0.3.3"; +static const char *VERSION = "0.3.5"; static const char *DESCRIPTION = "Series Record plugin"; static const char *MAINMENUENTRY = "Series Links"; -- cgit v1.2.3