From 2e66976f91230e7f8673eb6ad2414d101d7dbc9f Mon Sep 17 00:00:00 2001 From: Adam Saponara Date: Thu, 8 Feb 2024 20:45:07 -0500 Subject: [PATCH] permit overriding docker in makefile (like with podman) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ce7b4b..ff05f09 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,8 @@ termbox_so_x_y_z:=$(termbox_so_x).$(termbox_so_version_minor_patch) termbox_ld_soname:=soname termbox_a:=libtermbox2.a +DOCKER?=docker + ifeq ($(shell $(CC) -dumpmachine | grep -q apple && echo 1), 1) termbox_so:=libtermbox2.dylib termbox_so_x:=libtermbox2.$(termbox_so_version_abi).dylib @@ -59,7 +61,7 @@ format: clang-format -i termbox2.h test: $(termbox_so) $(termbox_ffi_h) $(termbox_ffi_macro) - docker build -f tests/Dockerfile --build-arg=cflags="$(termbox_cflags)" . + $(DOCKER) build -f tests/Dockerfile --build-arg=cflags="$(termbox_cflags)" . test_local: $(termbox_so) $(termbox_ffi_h) $(termbox_ffi_macro) ./tests/run.sh -- 2.39.5