From 31e7f4c45555c32b501319c5977bc1b274260b26 Mon Sep 17 00:00:00 2001 From: TheOnePath Date: Thu, 20 Jun 2024 22:13:33 +0100 Subject: [PATCH] Updated Makefile Fixed if statement for shell command --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b6c339b..6dc5945 100644 --- a/Makefile +++ b/Makefile @@ -114,10 +114,11 @@ $(__Wl_clipboard): ### PHONY targets that a user would run ### .PHONY : all all: - ifneq ($(shell test git submodule status | grep --quiet '^-' ; echo $$?), 1) + @if git submodule status | grep --quiet '^-' ; then\ $(error "Git submodules have not been initialised. Please run: git \ -"submodule update --init") - endif +submodule update --init");\ + if + @cd Hyprland/subprojects && git submodule update --init $(MAKE) build .PHONY : build