diff mbox

[i-g-t,1/2] meson.sh: Invoke meson correctly

Message ID 1506611448-1689-1-git-send-email-petri.latvala@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Petri Latvala Sept. 28, 2017, 3:10 p.m. UTC
Either source or build directory is required as a command line
parameter.

Also use mkdir -p when creating the build directory to avoid errors
when it already exists.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 meson.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/meson.sh b/meson.sh
index eff86adb..cbf1a932 100755
--- a/meson.sh
+++ b/meson.sh
@@ -6,8 +6,8 @@  cat > Makefile <<EOF
 default: all
 
 build/build.ninja:
-	mkdir build
-	meson
+	mkdir -p build
+	meson build
 
 all: build/build.ninja
 	ninja -C build