summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2014-04-26 09:25:00 +0200
committerthlo <smarttv640@gmail.com>2014-04-26 09:25:00 +0200
commit88bfdef3ba37e603644f0e1279e73754a2769bdd (patch)
tree9a6c7186b2a72f16568e24252a232d08a238fb2b /Makefile
parent6ee39aef2622c86e9d30dcc5371a5efd981f7f92 (diff)
downloadvdr-plugin-smarttvweb-88bfdef3ba37e603644f0e1279e73754a2769bdd.tar.gz
vdr-plugin-smarttvweb-88bfdef3ba37e603644f0e1279e73754a2769bdd.tar.bz2
Handling of Plugin conf data in Makefile.
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3c007f9..6eb90ea 100755
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,7 @@ PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(s
LIBDIR = $(call PKGCFG,libdir)
LOCDIR = $(call PKGCFG,locdir)
PLGCFG = $(call PKGCFG,plgcfg)
+CONFDIR = $(call PKGCFG,configdir)
#
TMPDIR ?= /tmp
@@ -105,6 +106,14 @@ $(SOFILE): $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@
install-lib: $(SOFILE)
+ @if [ ! -d $(DESTDIR)$(CONFDIR)/plugins/smarttvweb ]; then \
+ @echo "Creating plugin conf dir in "$(DESTDIR)$(CONFDIR); \
+ mkdir -p $(DESTDIR)$(CONFDIR)/plugins/smarttvweb; \
+ cp widget.conf $(DESTDIR)$(CONFDIR)/smarttvweb; \
+ cp -r web/ $(DESTDIR)$(CONFDIR)/smarttvweb; \
+ cp smarttvweb.conf $(DESTDIR)$(CONFDIR)/smarttvweb; \
+ chown -R vdr:vdr $(DESTDIR)$(CONFDIR)/smarttvweb; \
+ fi
install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)
install: install-lib install-i18n