From bb46a96c92f8da8e3ce71deda03a4ed94499a03c Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Tue, 25 Aug 2009 13:50:01 +0200
Subject: [PATCH] Fix building in a different directory

Also add build-bash-completion to EXTRA_DIST.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 Makefile.am | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 86f946522..71364a623 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -183,6 +183,7 @@ EXTRA_DIST = \
 	NEWS \
 	DEVNOTES \
 	pylintrc \
+	autotools/build-bash-completion \
 	autotools/docbook-wrapper \
 	autotools/run-in-tempdir \
 	devel/upload.in \
@@ -355,7 +356,8 @@ $(REPLACE_VARS_SED): Makefile stamp-directories
 srclinks: stamp-directories
 	set -e; \
 	for i in man/footer.sgml $(pkgpython_PYTHON) $(hypervisor_PYTHON) \
-			$(rapi_PYTHON) $(http_PYTHON) $(confd_PYTHON); do \
+			$(rapi_PYTHON) $(http_PYTHON) $(confd_PYTHON) \
+			$(dist_sbin_SCRIPTS) $(dist_tools_SCRIPTS); do \
 		if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \
 			$(LN_S) $(abs_top_srcdir)/$$i $$i; \
 		fi; \
-- 
GitLab