aboutsummaryrefslogtreecommitdiff
path: root/mach
diff options
context:
space:
mode:
Diffstat (limited to 'mach')
-rwxr-xr-xmach11
1 files changed, 6 insertions, 5 deletions
diff --git a/mach b/mach
index 76d73ea..fbc10d7 100755
--- a/mach
+++ b/mach
@@ -1,20 +1,21 @@
#!/bin/sh
# =====================================================================
# filename: mach
-# description: make wrapper used to run build.mk
+# description: make wrapper used to run mk files
# To use, add the relative path to this script as a
-# shebang in build.mk and make it executable.
+# shebang in mk and make it executable.
# spdx-license-identifier: ISC
# =====================================================================
-if [[ $1 != "./build.mk" ]]
+if [[ $1 != "./mk" ]]
then
- echo "Run from subdir"
+ echo "Usage: $0 ./mk; argument passed: $1"
exit 1
fi
-# remove ./build.mk from args
+# remove ./mk from args
ARGS=${@:2}
+
# root.mk should be next to this script
ROOT=`dirname $0`