summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-06-07 00:15:18 +0200
committerJasmin Jessich <jasmin@anw.at>2017-06-07 00:15:18 +0200
commit99cdbf4826724c4952c6cc89ab98bb3083ffb9ce (patch)
tree543b59a48624a9b7b4382f5d3b426ec5400bbb14 /Makefile
parent33c2c2f079e6b95a81511bffd87743c9b24e61ee (diff)
downloadvdr-plugin-live-99cdbf4826724c4952c6cc89ab98bb3083ffb9ce.tar.gz
vdr-plugin-live-99cdbf4826724c4952c6cc89ab98bb3083ffb9ce.tar.bz2
Makefile update
- Use make function abspath to convert LIBDIR and LOCDIR to an absolute path. - Use new variables LIBDIRABS and LOCDIRABS in Makefile. See http://www.vdr-portal.de/board16-video-disk-recorder/board55-vdr-plugins/p1292476-vdr-plugin-live-f%C3%BCr-vdr-2-3-x/#post1292476
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 090b6b6..2d91308 100644
--- a/Makefile
+++ b/Makefile
@@ -54,8 +54,8 @@ endif
CXXFLAGS += -std=c++11 -Wfatal-errors
### export all vars for sub-makes, using absolute paths
-LIBDIR := $(shell cd $(LIBDIR) >/dev/null 2>&1 && pwd)
-LOCDIR := $(shell cd $(LOCDIR) >/dev/null 2>&1 && pwd)
+LIBDIRABS = $(abspath $(LIBDIR))
+LOCDIRABS = $(abspath $(LOCDIR))
export
unexport PLUGIN
@@ -67,7 +67,7 @@ PACKAGE := vdr-$(ARCHIVE)
SOFILE := libvdr-$(PLUGIN).so
### Installed shared object file:
-SOINST := $(DESTDIR)$(LIBDIR)/$(SOFILE).$(APIVERSION)
+SOINST = $(DESTDIR)$(LIBDIRABS)/$(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)$(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
+I18Nmsgs := $(addprefix $(DESTDIR)$(LOCDIRABS)/, $(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)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
+$(I18Nmsgs): $(DESTDIR)$(LOCDIRABS)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
$(if $(DISABLE_I18Nmoinst_txt),,@echo "Installing *.mo")
@install -D -m644 $< $@
$(eval DISABLE_I18Nmoinst_txt := 1)