diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-12-27 09:59:29 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-12-27 09:59:29 +0100 |
commit | 3649145acbffbb8cbbee85c5bf23e7f119fe84d8 (patch) | |
tree | 776798f5e61891dea3a9ee67523cca477563fecf /Makefile | |
parent | 4545c9e93e390834ca25bdb5e0f79dbc9ce4ad8d (diff) | |
download | vdr-3649145acbffbb8cbbee85c5bf23e7f119fe84d8.tar.gz vdr-3649145acbffbb8cbbee85c5bf23e7f119fe84d8.tar.bz2 |
Making sure that plugins include the VDR header files from the actual VDR source directory when doing "make plugins"
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -4,7 +4,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: Makefile 2.36 2012/12/23 11:28:13 kls Exp $ +# $Id: Makefile 2.37 2012/12/26 10:55:01 kls Exp $ .DELETE_ON_ERROR: @@ -196,7 +196,11 @@ plugins: include-dir vdr.pc if [ "$(LIBDIR)" == "$(CWD)/PLUGINS/lib" ] && [ "$(LOCDIR)" == "$(CWD)/locale" ]; then\ target=install;\ fi;\ - $(MAKE) --no-print-directory -C "$(PLUGINDIR)/src/$$i" VDRDIR=$(CWD) $$target || failed="$$failed $$i";\ + includes=;\ + if [ "$(INCDIR)" != "$(CWD)/include" ]; then\ + includes="INCLUDES=-I$(CWD)/include";\ + fi;\ + $(MAKE) --no-print-directory -C "$(PLUGINDIR)/src/$$i" VDRDIR=$(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 |