From 494f2f74452ea53bcfb9c58c140cc9c002284ca3 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 3 Feb 2013 18:10:31 +0000 Subject: [PATCH] VDR 1.7.36 compatible --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ef59f33..615b1ca 100644 --- a/Makefile +++ b/Makefile @@ -26,13 +26,15 @@ TMPDIR ?= /tmp # VOMP INSERT for older VDRs ifeq ($(VDRDIR),) VDRDIR = ../../.. +endif +ifeq ($(LIBDIR),) LIBDIR = ../../lib endif APIVERSNUM = $(shell grep 'define APIVERSNUM ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g') -DOOLDINSTALL = 0 +DOOLDINSTALL = ifeq ($(shell test $(APIVERSNUM) -le 10734; echo $$?),0) # thanks streamdev -DOOLDINSTALL = 1 +DOOLDINSTALL = yes endif # end insert @@ -158,8 +160,9 @@ standalonebase: $(SOFILE): objects $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(OBJS2) -o $@ - if [ -n "$(DOOLDINSTALL)" ]; then \ -cp $@ $(LIBDIR)/$@.$(APIVERSION) ; \ + @if [ -n "$(DOOLDINSTALL)" ]; then \ +@cp $@ $(LIBDIR)/$@.$(APIVERSION) ; \ +@echo "done manual copy"; \ fi vompserver-standalone: objectsstandalone -- 2.39.2