From d1516c386363c7f442001d47e581ae9532b0db66 Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 28 Nov 2023 13:38:26 +0100 Subject: [PATCH] Match only one file for cp in make for macOS On macOS, the glob at the end of the `Makefile` matched three files, so it failed. This fix works on macOS and Linux. --- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index 585e14f..27bbe5b 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -34,4 +34,4 @@ all: mkdir -p build ../static cmake -B build/ -DCMAKE_BUILD_TYPE=ReleaseWithDebug -DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF -DCMAKE_C_FLAGS="$(CFLAGS)" $(CMAKEFLAGS) $(MAKE) -C build - cp build/src/*glfw*.$(EXT) ../static/libglfw-$(OS)-$(ARCH).$(EXT) + cp build/src/*glfw.$(EXT) ../static/libglfw-$(OS)-$(ARCH).$(EXT)