diff --git a/Makefile b/Makefile index 985c6ff..c5d5b94 100644 --- a/Makefile +++ b/Makefile @@ -114,9 +114,10 @@ $(__Wl_clipboard): ### PHONY targets that a user would run ### .PHONY : all all: - @[[ -z "$(git submodule status | grep --quiet '^-')" ]] && \ + ifneq ($(git submodule status | grep --quiet '^-' ; echo $$?), 0) $(error "Git submodules have not been initialised. Please run: git \ "submodule update --init") + endif $(MAKE) build .PHONY : build