summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2012-12-29 15:57:57 +0100
committerlouis <louis.braun@gmx.de>2012-12-29 16:09:56 +0100
commit017fcb2ce669541d82e41692a5cfd4ed0372c01d (patch)
tree1a3e4960b2038ee8f876f5efc909caf8ba85e23f /Makefile
parent2228eab96dbd29916cc8a20c601ce9542611787a (diff)
downloadskin-nopacity-017fcb2ce669541d82e41692a5cfd4ed0372c01d.tar.gz
skin-nopacity-017fcb2ce669541d82e41692a5cfd4ed0372c01d.tar.bz2
adapted makefile to install icons and themes automatically
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fb203fb..a8f5476 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,8 @@ VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ pri
PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc))
LIBDIR = $(DESTDIR)$(call PKGCFG,libdir)
LOCDIR = $(DESTDIR)$(call PKGCFG,locdir)
+VDRCONFDIR = $(DESTDIR)$(call PKGCFG,configdir)
+PLGCONFDIR = $(DESTDIR)$(call PKGCFG,configdir)/plugins/$(PLUGIN)
TMPDIR ?= /tmp
### The compiler options:
@@ -41,7 +43,6 @@ SOFILE = libvdr-$(PLUGIN).so
### Includes and Defines (add further entries here):
-INCLUDES +=
INCLUDES += -I/usr/include/ImageMagick
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
@@ -102,7 +103,15 @@ $(SOFILE): $(OBJS)
install-lib: $(SOFILE)
install -D $^ $(LIBDIR)/$^.$(APIVERSION)
-install: install-lib install-i18n
+install-themes:
+ mkdir -p $(VDRCONFDIR)/themes
+ cp themes/* $(VDRCONFDIR)/themes
+
+install-icons:
+ mkdir -p $(PLGCONFDIR)/icons
+ cp -r icons/* $(PLGCONFDIR)/icons
+
+install: install-lib install-i18n install-themes install-icons
dist: $(I18Npo) clean
@-rm -rf $(TMPDIR)/$(ARCHIVE)