From 3c440f91ea7f26f7c5ed10c18bd28348020d8ebe Mon Sep 17 00:00:00 2001 From: aqua Date: Sun, 30 Jul 2023 17:11:43 +0300 Subject: Added make wrapper --- mach | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'mach') 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` -- cgit v1.2.1