ovs-sandbox: assign default value to ${MAKE}
authorqhjindev <qhjin_dev@163.com>
Thu, 31 Dec 2015 13:19:10 +0000 (21:19 +0800)
committerRussell Bryant <russell@ovn.org>
Mon, 4 Jan 2016 13:35:11 +0000 (08:35 -0500)
When run ovs-sandbox directly from the tutorial directory (the second method
in Tutorial.md), the following result show up:

$ ./ovs-sandbox -b /media/sda6/network/ovs/build
./ovs-sandbox: line 304: install-man: command not found

The reason is that ${MAKE} is not set in the situation.

So change ${MAKE} to ${MAKE-make} to resolve the issue.

GitHub-PR: #104
Signed-off-by: Qinghua Jin <qhjin_dev@163.com>
Signed-off-by: Russell Bryant <russell@ovn.org>
tutorial/ovs-sandbox

index d261948..a2e9f7a 100755 (executable)
@@ -301,7 +301,7 @@ OVS_SYSCONFDIR=$sandbox; export OVS_SYSCONFDIR
 
 if $built; then
     # Easy access to OVS manpages.
-    (cd "$builddir" && ${MAKE} install-man mandir="$sandbox"/man)
+    (cd "$builddir" && ${MAKE-make} install-man mandir="$sandbox"/man)
     MANPATH=$sandbox/man:; export MANPATH
 fi