summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2013-01-21 00:40:50 (GMT)
committermrwastl <mrwastl@users.sourceforge.net>2013-01-21 00:40:50 (GMT)
commit3d01a58a8a9e59dd19f3a2c1b42d55d10c45c678 (patch)
treec6f3513c5e0b2578824a65fbfbee5604562bfce8
parentca5a82aadc96ce4daae7c7c68e756f9cea88ad81 (diff)
downloadvdr-plugin-graphlcd-3d01a58a8a9e59dd19f3a2c1b42d55d10c45c678.tar.gz
vdr-plugin-graphlcd-3d01a58a8a9e59dd19f3a2c1b42d55d10c45c678.tar.bz2
disallow inclusion of Make.config when VDR >= 1.7.33
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index abc045e..ef3f4f0 100644
--- a/Makefile
+++ b/Makefile
@@ -37,8 +37,17 @@ APIVERSION = $(call PKGCFG,apiversion)
ifeq ($(VDRDIR),)
VDRDIR ?= ../../..
endif
+
ifeq ($(PLGCFG),)
PLGCFG = $(VDRDIR)/Make.config
+
+ # test if plgcfg is given and set to an empty value in vdr.pc
+ # if so: assume that VDR >= 1.7.33 and disallow Make.config
+ ifneq ($(wildcard $(VDRDIR)/vdr.pc),)
+ ifneq ($(shell grep -e '^plgcfg' $(VDRDIR)/vdr.pc),)
+ PLGCFG =
+ endif
+ endif
endif
-include $(PLGCFG)