diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-07-30 17:11:43 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-07-30 17:11:43 +0300 |
commit | 3c440f91ea7f26f7c5ed10c18bd28348020d8ebe (patch) | |
tree | 1b88afc9e7ae16dd7a827c93e6467096c6760047 /mach | |
parent | Fix compiler warnings (diff) | |
download | kernel-3c440f91ea7f26f7c5ed10c18bd28348020d8ebe.tar.xz |
Added make wrapper
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` |