Add necessary switches for darwin builds

This commit is contained in:
Tristan
2022-06-23 15:23:25 +02:00
parent 9bbd35ce49
commit 05b9f1eabe
4 changed files with 42 additions and 4 deletions

8
deps/lua/Makefile vendored
View File

@@ -16,8 +16,16 @@ $(LUA_BUILDIR): $(LUA_TARBALL)
tar -C $(LUA_BUILDIR) --strip-components=1 -xf "$(LUA_TARBALL)"
build: $(LUA_BUILDIR)
$(MAKE) build_$(shell uname -s)
.PHONY: build_Linux
build_Linux:
$(MAKE) -C $(LUA_BUILDIR) -j$(shell nproc) linux
.PHONY: build_Darwin
build_Darwin:
$(MAKE) -C $(LUA_BUILDIR) -j$(shell nproc) macosx
$(LUA_DESTDIR): build
if ! [ -d "$(LUA_DESTDIR)" ]; then mkdir -v "$(LUA_DESTDIR)"; fi
$(MAKE) -C $(LUA_BUILDIR) -j$(shell nproc) install INSTALL_TOP="$(LUA_DESTDIR_ABS)"