1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

makefile: Fix prompting of adding missing packages in some cases

This commit is contained in:
Mark Pizzolato 2025-09-01 16:01:11 -10:00
parent ea37ca9ff5
commit 46c6398912

View File

@ -379,7 +379,7 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
export TEST = test
endif
RUNNING_AS_ROOT:=$(if $(findstring Darwin,$(OSTYPE)),$(shell if [ `id -u` == '0' ]; then echo running_as_root; fi),$(shell if $(TEST) -r /dev/mem; then echo running_as_root; fi))
CAN_AUTO_INSTALL_PACKAGES:=$(findstring HOMEBREW,$(PKG_MGR)),$(RUNNING_AS_ROOT)
CAN_AUTO_INSTALL_PACKAGES:=$(findstring HOMEBREW,$(PKG_MGR))$(RUNNING_AS_ROOT)
override AUTO_INSTALL_PACKAGES:=$(and $(AUTO_INSTALL_PACKAGES),$(or $(findstring HOMEBREW,$(PKG_MGR)),$(RUNNING_AS_ROOT)))
ifeq (${GCC},)
ifeq (,$(call find_exe,gcc))