From a7f11c1f3e6af110537c303956235ff12241abed Mon Sep 17 00:00:00 2001 From: Anthony Howe Date: Sun, 3 Aug 2025 06:54:24 -0400 Subject: [PATCH 1/2] Fix try.sh to be more portable. --- 2024/howe/try.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/2024/howe/try.sh b/2024/howe/try.sh index fac305f82..7748aa188 100755 --- a/2024/howe/try.sh +++ b/2024/howe/try.sh @@ -9,7 +9,8 @@ if [[ -z "$CC" ]]; then CC="cc" fi -make CC="$CC" all >/dev/null || exit 1 +MAKE=$(which gmake) +${MAKE:=make} CC="$CC" all >/dev/null || exit 1 read -r -n 1 -p "Press any key to form foo: " echo 1>&2 From 225dd5a6f69372dcd76531065e706520f310bbfa Mon Sep 17 00:00:00 2001 From: Anthony Howe Date: Sun, 3 Aug 2025 06:55:02 -0400 Subject: [PATCH 2/2] Fix Makefile to clobber all artifacts and restore the directory. --- 2024/howe/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2024/howe/Makefile b/2024/howe/Makefile index b46e29ae8..02265c311 100644 --- a/2024/howe/Makefile +++ b/2024/howe/Makefile @@ -221,7 +221,7 @@ clean: ${RM} -f ${OBJ} ${ALT_OBJ} clobber: clean - ${RM} -f ${TARGET} ${ALT_TARGET} + ${RM} -f ${TARGET} ${ALT_TARGET} try foo ${RM} -rf *.dSYM