diff options
author | thlo <smarttv640@gmail.com> | 2014-04-26 09:25:00 +0200 |
---|---|---|
committer | thlo <smarttv640@gmail.com> | 2014-04-26 09:25:00 +0200 |
commit | 88bfdef3ba37e603644f0e1279e73754a2769bdd (patch) | |
tree | 9a6c7186b2a72f16568e24252a232d08a238fb2b /Makefile | |
parent | 6ee39aef2622c86e9d30dcc5371a5efd981f7f92 (diff) | |
download | vdr-plugin-smarttvweb-88bfdef3ba37e603644f0e1279e73754a2769bdd.tar.gz vdr-plugin-smarttvweb-88bfdef3ba37e603644f0e1279e73754a2769bdd.tar.bz2 |
Handling of Plugin conf data in Makefile.
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |