summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-12-27 16:15:38 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-12-27 16:15:38 +0100
commitf70414cf5b6f2fe44187e7bf35efd270c3def585 (patch)
tree833b7b64419fd9f1c21f3b387e78c20f5d5f389c /Makefile
parent2e138748c2b4ece5455d8a136b359ee872f17b59 (diff)
downloadvdr-f70414cf5b6f2fe44187e7bf35efd270c3def585.tar.gz
vdr-f70414cf5b6f2fe44187e7bf35efd270c3def585.tar.bz2
Using relative paths again when building plugins locally
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index e20fe708..11c59729 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Makefile 2.41 2012/12/27 14:00:51 kls Exp $
+# $Id: Makefile 2.42 2012/12/27 16:02:53 kls Exp $
.DELETE_ON_ERROR:
@@ -23,7 +23,7 @@ CDEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
# Directories:
-CWD := $(shell pwd)
+CWD = .
LSIDIR = ./libsi
DESTDIR ?=
PREFIX ?= /usr/local
@@ -52,6 +52,8 @@ ifdef DVBDIR
CFLAGS += -I$(DVBDIR)/include
endif
+UP3 = $(if $(findstring "$(LIBDIR)-$(LOCDIR)","$(CWD)/PLUGINS/lib-$(CWD)/locale"),../../../,)
+
SILIB = $(LSIDIR)/libsi.a
OBJS = audio.o channels.o ci.o config.o cutter.o device.o diseqc.o dvbdevice.o dvbci.o\
@@ -135,11 +137,11 @@ vdr.pc:
@echo "videodir=$(VIDEODIR)" >> $@
@echo "cachedir=$(CACHEDIRDEF)" >> $@
@echo "resdir=$(RESDIRDEF)" >> $@
- @echo "libdir=$(LIBDIR)" >> $@
- @echo "locdir=$(LOCDIR)" >> $@
+ @echo "libdir=$(UP3)$(LIBDIR)" >> $@
+ @echo "locdir=$(UP3)$(LOCDIR)" >> $@
@echo "apiversion=$(APIVERSION)" >> $@
- @echo "cflags=$(CFLAGS) $(CDEFINES) -I$(INCDIR)" >> $@
- @echo "cxxflags=$(CXXFLAGS) $(CDEFINES) -I$(INCDIR)" >> $@
+ @echo "cflags=$(CFLAGS) $(CDEFINES) -I$(UP3)$(INCDIR)" >> $@
+ @echo "cxxflags=$(CXXFLAGS) $(CDEFINES) -I$(UP3)$(INCDIR)" >> $@
@echo "" >> $@
@echo "Name: VDR" >> $@
@echo "Description: Video Disk Recorder" >> $@
@@ -202,9 +204,9 @@ plugins: include-dir vdr.pc
fi;\
includes=;\
if [ "$(INCDIR)" != "$(CWD)/include" ]; then\
- includes="INCLUDES=-I$(CWD)/include";\
+ includes="INCLUDES=-I$(UP3)/include";\
fi;\
- $(MAKE) --no-print-directory -C "$(PLUGINDIR)/src/$$i" VDRDIR=$(CWD) $$includes $$target || failed="$$failed $$i";\
+ $(MAKE) --no-print-directory -C "$(PLUGINDIR)/src/$$i" VDRDIR=$(UP3)$(CWD) $$includes $$target || failed="$$failed $$i";\
done;\
if [ -n "$$noapiv" ] ; then echo; echo "*** plugins without APIVERSION:$$noapiv"; echo; fi;\
if [ -n "$$failed" ] ; then echo; echo "*** failed plugins:$$failed"; echo; exit 1; fi
@@ -247,7 +249,7 @@ install-doc:
install-plugins: plugins
@for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do\
- $(MAKE) --no-print-directory -C "$(PLUGINDIR)/src/$$i" VDRDIR=$(CWD) DESTDIR=$(DESTDIR) install;\
+ $(MAKE) --no-print-directory -C "$(PLUGINDIR)/src/$$i" VDRDIR=$(UP3)$(CWD) DESTDIR=$(DESTDIR) install;\
done
# Includes: