blob: fbc10d71740391af5187cf3e2e1ed919a2f9bdbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
# =====================================================================
# filename: mach
# description: make wrapper used to run mk files
# To use, add the relative path to this script as a
# shebang in mk and make it executable.
# spdx-license-identifier: ISC
# =====================================================================
if [[ $1 != "./mk" ]]
then
echo "Usage: $0 ./mk; argument passed: $1"
exit 1
fi
# remove ./mk from args
ARGS=${@:2}
# root.mk should be next to this script
ROOT=`dirname $0`
make --silent -f ${ROOT}/root.mk -C ${PWD} ${ARGS}
|