From 176722a841e59f4a6664bad45dc9344364a4a166 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 5 Oct 2023 23:50:31 +0100 Subject: unify handle/make/* into build/project/trees Just one script. Just one. Signed-off-by: Leah Rowe --- script/handle/make/file | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100755 script/handle/make/file (limited to 'script/handle/make/file') diff --git a/script/handle/make/file b/script/handle/make/file deleted file mode 100755 index ff41f375..00000000 --- a/script/handle/make/file +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env sh -# SPDX-License-Identifier: GPL-3.0-or-later -# SPDX-FileCopyrightText: 2023 Leah Rowe - -[ "x${DEBUG+set}" = 'xset' ] && set -v -set -u -e - -. "include/err.sh" -. "include/make.sh" - -eval "$(setvars "" mode project _flag codedir)" - -# main() is in include/make.sh - -handle_dependencies() -{ - [ $# -gt 0 ] && x_ ./handle make file ${_flag} ${@} - - [ -d "${project}" ] || x_ ./update project repo "${project%/*}" - [ -d "${project}" ] || \ - err "handle_dependencies: ${project%/*} not downloaded" - - [ "${project}" = "uefitool" ] || return 0 # TODO: remove hardcoding - ( - x_ cd uefitool - cmake UEFIExtract/ || [ -f Makefile ] || \ - err "handle_dependencies: !cmake UEFIExtract/" - ) -} - -handle_targets() -{ - [ -f "${project}/Makefile" ] || [ -f "${project}/makefile" ] || \ - [ -f "${project}/GNUmakefile" ] || return 0 - [ "${mode}" = "all" ] && x_ make -C "${project}" -j$(nproc) && return 0 - x_ make -C "${project}" clean - make -C "${project}" distclean 2>/dev/null || : -} - -main $@ -- cgit v1.2.1