diff options
Diffstat (limited to 'mach')
-rwxr-xr-x | mach | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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` |