diff options
author | Thadeu Lima de Souza Cascardo <cascardo@redhat.com> | 2016-10-08 07:27:17 -0300 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-10-09 12:45:13 -0700 |
commit | 3d982663b78a1bc3ca94e718089e16111c6db04d (patch) | |
tree | 19a84732fdbf73e04e3b1d963559d8002395d438 /Vagrantfile | |
parent | 960e99dcdd1423041b14c9b42c9d8a666d682502 (diff) | |
download | openvswitch-3d982663b78a1bc3ca94e718089e16111c6db04d.tar.gz |
vagrant: cleanup before building
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@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'Vagrantfile')
-rw-r--r-- | Vagrantfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile index 8f7adee4e..fb17ec5ed 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 |