From 017fcb2ce669541d82e41692a5cfd4ed0372c01d Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 29 Dec 2012 15:57:57 +0100 Subject: adapted makefile to install icons and themes automatically --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3