diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -518,6 +518,12 @@ docker-push-base: docker tag bun-base-with-args ghcr.io/jarred-sumner/bun-base-with-args:latest docker push ghcr.io/jarred-sumner/bun-base-with-args:latest + +ifeq ($(POSIX_PKG_MANAGER), brew) +PKGNAME_NINJA := ninja +else +PKGNAME_NINJA := ninja-build +endif require: @echo "Checking if the required utilities are available..." @@ -528,7 +534,7 @@ require: @go version >/dev/null 2>&1 || (echo -e "ERROR: go is required."; exit 1) @which aclocal > /dev/null || (echo -e "ERROR: automake is required. Install with:\n\n $(POSIX_PKG_MANAGER) install automake"; exit 1) @which $(LIBTOOL) > /dev/null || (echo -e "ERROR: libtool is required. Install with:\n\n $(POSIX_PKG_MANAGER) install libtool"; exit 1) - @which ninja > /dev/null || (echo -e "ERROR: Ninja is required. Install with:\n\n $(POSIX_PKG_MANAGER) install ninja"; exit 1) + @which ninja > /dev/null || (echo -e "ERROR: Ninja is required. Install with:\n\n $(POSIX_PKG_MANAGER) install $(PKGNAME_NINJA)"; exit 1) @echo "You have the dependencies installed! Woo" init-submodules: |