[ofa-general] [PATCH] infiniband-diags/Makefile.am: fix location of ibdiag_version.h

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Sun May 11 05:37:11 PDT 2008


Hi Sasha,

When compiling infiniband-diags not from the source code location,
compilation fails to find the ibdiag_version.h file - fixing it.

Signed-off-by:  Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 infiniband-diags/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/infiniband-diags/Makefile.am b/infiniband-diags/Makefile.am
index e502a06..b6228b5 100644
--- a/infiniband-diags/Makefile.am
+++ b/infiniband-diags/Makefile.am
@@ -1,5 +1,5 @@

-INCLUDES = -I$(srcdir)/include -I$(includedir) -I$(includedir)/infiniband
+INCLUDES = -I$(top_builddir)/include/ -I$(srcdir)/include -I$(includedir) -I$(includedir)/infiniband

 if DEBUG
 DBGFLAGS = -ggdb -D_DEBUG_
@@ -103,7 +103,7 @@ man_MANS = man/ibaddr.8 man/ibcheckerrors.8 man/ibcheckerrs.8 \
 BUILT_SOURCES = ibdiag_version
 ibdiag_version:
 	if [ -x $(top_srcdir)/../gen_ver.sh ] ; then \
-		ver_file=$(srcdir)/include/ibdiag_version.h ; \
+		ver_file=$(top_builddir)/include/ibdiag_version.h ; \
 		ibdiag_ver=`cat $$ver_file | sed -ne '/#define IBDIAG_VERSION /s/^.*\"\(.*\)\"$$/\1/p'` ; \
 		ver=`$(top_srcdir)/../gen_ver.sh $(PACKAGE)` ; \
 		if [ $$ver != $$ibdiag_ver ] ; then \
-- 
1.5.1.4




More information about the general mailing list