summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-06-07 21:53:43 +0200
committerJasmin Jessich <jasmin@anw.at>2017-06-07 21:53:43 +0200
commit52058cf83b8666d1132207470f42e2a535b8be90 (patch)
tree2b2345d5545fe3bed25ccaaf77381959fa9e4d8d
parent475773e05f3ff85efac39120e0b6a31b7d337b1a (diff)
downloadvdr-plugin-live-52058cf83b8666d1132207470f42e2a535b8be90.tar.gz
vdr-plugin-live-52058cf83b8666d1132207470f42e2a535b8be90.tar.bz2
Makefile update
- Partly revert commit 99cdbf4826724c4952c6cc89ab98bb3083ffb9ce because the VDR Makefile expects ...LIBDIR....APIVERSION... to accept the plugin.
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 27f7f2b..7ec3524 100644
--- a/Makefile
+++ b/Makefile
@@ -54,8 +54,8 @@ endif
CXXFLAGS += -std=c++11 -Wfatal-errors -Wundef
### export all vars for sub-makes, using absolute paths
-LIBDIRABS = $(abspath $(LIBDIR))
-LOCDIRABS = $(abspath $(LOCDIR))
+LIBDIR := $(abspath $(LIBDIR))
+LOCDIR := $(abspath $(LOCDIR))
export
unexport PLUGIN
@@ -67,7 +67,7 @@ PACKAGE := vdr-$(ARCHIVE)
SOFILE := libvdr-$(PLUGIN).so
### Installed shared object file:
-SOINST = $(DESTDIR)$(LIBDIRABS)/$(SOFILE).$(APIVERSION)
+SOINST = $(DESTDIR)$(LIBDIR)/$(SOFILE).$(APIVERSION)
### Includes and Defines (add further entries here):
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DTNTVERSION=$(TNTVERSION) -DCXXTOOLVER=$(CXXTOOLVER)
@@ -133,7 +133,7 @@ recursive-%:
PODIR := po
I18Npo := $(wildcard $(PODIR)/*.po)
I18Nmo := $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file))))
-I18Nmsgs := $(addprefix $(DESTDIR)$(LOCDIRABS)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
+I18Nmsgs := $(addprefix $(DESTDIR)$(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
I18Npot := $(PODIR)/$(PLUGIN).pot
I18Npot_deps = $(PLUGINSRCS) $(wildcard $(WEB_DIR_PAGES)/*.cpp) setup.h epg_events.h
@@ -156,7 +156,7 @@ I18Nmo: $(I18Nmo)
@touch $@
$(eval DISABLE_I18Npo_txt := 1)
-$(I18Nmsgs): $(DESTDIR)$(LOCDIRABS)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
+$(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
$(if $(DISABLE_I18Nmoinst_txt),,@echo "Installing *.mo")
@install -D -m644 $< $@
$(eval DISABLE_I18Nmoinst_txt := 1)