summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave <vdr@pickles.me.uk>2015-09-29 16:17:00 +0100
committerDave <vdr@pickles.me.uk>2015-09-29 16:17:00 +0100
commit7b4996433f90d74d5afd1ea6ab4d1997c9e2089c (patch)
tree8e59d6ec86523dc6d3a383e02fa711a824e8ea87
parent17153724739c4ef07323bcd93b4060c3420598da (diff)
downloadvdrtva-7b4996433f90d74d5afd1ea6ab4d1997c9e2089c.tar.gz
vdrtva-7b4996433f90d74d5afd1ea6ab4d1997c9e2089c.tar.bz2
Makefile now builds stable or development version.
-rw-r--r--Makefile10
-rw-r--r--vdrtva-2.3.c2
-rw-r--r--vdrtva.c2
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='<see README>' -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";