diff options
| author | Dave <vdr@pickles.me.uk> | 2015-09-29 16:17:00 +0100 |
|---|---|---|
| committer | Dave <vdr@pickles.me.uk> | 2015-09-29 16:17:00 +0100 |
| commit | 7b4996433f90d74d5afd1ea6ab4d1997c9e2089c (patch) | |
| tree | 8e59d6ec86523dc6d3a383e02fa711a824e8ea87 /Makefile | |
| parent | 17153724739c4ef07323bcd93b4060c3420598da (diff) | |
| download | vdrtva-7b4996433f90d74d5afd1ea6ab4d1997c9e2089c.tar.gz vdrtva-7b4996433f90d74d5afd1ea6ab4d1997c9e2089c.tar.bz2 | |
Makefile now builds stable or development version.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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) |
