diff options
author | louis <louis.braun@gmx.de> | 2013-01-08 00:07:42 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-01-08 00:07:42 +0100 |
commit | a78934090d791a491a7f178a398657f5d51387f4 (patch) | |
tree | 87500bff959b1ec3407da1da94d2b3881b780539 | |
parent | 610d5843f59680670c7651781660cdd4ac75fdea (diff) | |
download | skin-nopacity-a78934090d791a491a7f178a398657f5d51387f4.tar.gz skin-nopacity-a78934090d791a491a7f178a398657f5d51387f4.tar.bz2 |
Changed Makefile to allow user defined options
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -21,14 +21,19 @@ 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) +PLGCFG = $(call PKGCFG,plgcfg) VDRCONFDIR = $(DESTDIR)$(call PKGCFG,configdir) -PLGCONFDIR = $(DESTDIR)$(call PKGCFG,resdir)/plugins/$(PLUGIN) +PLGRESDIR = $(DESTDIR)$(call PKGCFG,resdir)/plugins/$(PLUGIN) TMPDIR ?= /tmp ### The compiler options: export CFLAGS = $(call PKGCFG,cflags) export CXXFLAGS = $(call PKGCFG,cxxflags) +### Allow user defined options to overwrite defaults: + +-include $(PLGCFG) + ### The version number of VDR's plugin API: APIVERSION = $(call PKGCFG,apiversion) @@ -108,8 +113,8 @@ install-themes: cp themes/* $(VDRCONFDIR)/themes install-icons: - mkdir -p $(PLGCONFDIR)/icons - cp -r icons/* $(PLGCONFDIR)/icons + mkdir -p $(PLGRESDIR)/icons + cp -r icons/* $(PLGRESDIR)/icons install: install-lib install-i18n install-themes install-icons |