From 88bfdef3ba37e603644f0e1279e73754a2769bdd Mon Sep 17 00:00:00 2001 From: thlo Date: Sat, 26 Apr 2014 09:25:00 +0200 Subject: Handling of Plugin conf data in Makefile. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3