Updated Makefile

Fixed if statement for shell command
This commit is contained in:
Ethan Smith-Coss 2024-06-20 22:13:33 +01:00
parent 82034e3bfc
commit 31e7f4c455
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -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