diff --git a/build/workspaces/clean-workspaces.sh b/build/workspaces/clean-workspaces.sh index c1155cdc32..90cdabe3b3 100755 --- a/build/workspaces/clean-workspaces.sh +++ b/build/workspaces/clean-workspaces.sh @@ -1,13 +1,15 @@ #!/bin/sh -# FreeBSD's make is different than GNU make, so we allow overriding the make command. -# If not set, MAKE will default to "gmake" on FreeBSD, or "make" on other OSes -if [ "`uname -s`" = "FreeBSD" ] -then - MAKE=${MAKE:="gmake"} -else - MAKE=${MAKE:="make"} -fi +# Some of our makefiles depend on GNU make, so we set some sane defaults if MAKE +# is not set. +case "`uname -s`" in + "FreeBSD" | "OpenBSD" ) + MAKE=${MAKE:="gmake"} + ;; + * ) + MAKE=${MAKE:="make"} + ;; +esac # (We don't attempt to clean up every last file here - output in # binaries/system/ will still be there, etc. This is mostly just diff --git a/build/workspaces/update-workspaces.sh b/build/workspaces/update-workspaces.sh index 021ef3d934..dd91f38209 100644 --- a/build/workspaces/update-workspaces.sh +++ b/build/workspaces/update-workspaces.sh @@ -18,14 +18,16 @@ esac JOBS=${JOBS:="-j2"} -# FreeBSD's make is different than GNU make, so we allow overriding the make command. -# If not set, MAKE will default to "gmake" on FreeBSD, or "make" on other OSes -if [ "`uname -s`" = "FreeBSD" ] -then - MAKE=${MAKE:="gmake"} -else - MAKE=${MAKE:="make"} -fi +# Some of our makefiles depend on GNU make, so we set some sane defaults if MAKE +# is not set. +case "`uname -s`" in + "FreeBSD" | "OpenBSD" ) + MAKE=${MAKE:="gmake"} + ;; + * ) + MAKE=${MAKE:="make"} + ;; +esac # Parse command-line options: