diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-06-11 23:11:25 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-06-11 23:11:25 +0300 |
commit | cb6aa7dd9703eb3dba275905f98de682b57d3a78 (patch) | |
tree | 4b2b6ff65c148c5e9fe035e621496fcb2302dfb8 /mach | |
parent | Make code ANSI C compatible (diff) | |
download | kernel-cb6aa7dd9703eb3dba275905f98de682b57d3a78.tar.xz |
Rework leaf makefiles to be included from top-level
- remove Makefile.all
Diffstat (limited to 'mach')
-rwxr-xr-x | mach | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +#!/bin/sh +# ===================================================================== +# filename: mach +# description: make wrapper used to run build.mk +# To use, add the relative path to this script as a +# shebang in build.mk and make it executable. +# spdx-license-identifier: ISC +# ===================================================================== + +if [[ $1 != "./build.mk" ]] +then + echo "Run from subdir" + exit 1 +fi + +# remove ./build.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} |