[ovs-dev] [PATCH v2] vagrant: cleanup before building

Thadeu Lima de Souza Cascardo cascardo at redhat.com
Sat Oct 8 10:27:17 UTC 2016


Clean the source directory before building, otherwise, build might fail if it
has been configured already.

Only do it if there is a Makefile present, as suggested by Ben Pfaff.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>
Cc: Ben Pfaff <blp at ovn.org>
---
 Vagrantfile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Vagrantfile b/Vagrantfile
index 8f7adee..fb17ec5 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -33,6 +33,7 @@ SCRIPT
 $configure_ovs = <<SCRIPT
 cd /vagrant
 ./boot.sh
+[ -f Makefile ] && ./configure && make distclean
 mkdir -p ~/build
 cd ~/build
 /vagrant/configure --with-linux=/lib/modules/`uname -r`/build --enable-silent-rules
-- 
2.7.4




More information about the dev mailing list