[ofa-general] [PATCH] opensm/opensm/Makefile.am: allow 'make dist' from non-source directory
    Yevgeny Kliteynik 
    kliteyn at dev.mellanox.co.il
       
    Wed Oct 22 07:45:19 PDT 2008
    
    
  
Hi Sasha,
gen_chlog.sh expects to be in the source location where
it sees .git directory, so when compiling from some other
directory, 'make dist' fails.
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/Makefile.am b/opensm/Makefile.am
index 0fb1363..f8b66b3 100644
--- a/opensm/Makefile.am
+++ b/opensm/Makefile.am
@@ -27,5 +27,5 @@ EXTRA_DIST = autogen.sh opensm.spec $(various_scripts) $(man_MANS) $(docs)
 dist-hook: $(EXTRA_DIST)
 	if [ -x $(top_srcdir)/../gen_chlog.sh ] ; then \
-		$(top_srcdir)/../gen_chlog.sh $(PACKAGE) > $(distdir)/ChangeLog ; \
+		cd $(top_srcdir)/.. ; ./gen_chlog.sh $(PACKAGE) > $(distdir)/ChangeLog ; cd - ; \
 	fi
-- 
1.5.1.4
    
    
More information about the general
mailing list