From 3d01a58a8a9e59dd19f3a2c1b42d55d10c45c678 Mon Sep 17 00:00:00 2001 From: mrwastl Date: Mon, 21 Jan 2013 01:40:50 +0100 Subject: disallow inclusion of Make.config when VDR >= 1.7.33 --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') 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) -- cgit v1.2.3