From 5ac22f4dd3f4cb6a98a105c30b0b13df19447c1f Mon Sep 17 00:00:00 2001 From: TheOnePath Date: Mon, 1 Jul 2024 19:03:35 +0100 Subject: [PATCH] Updated Makefile Added update recipe to pull the latest commits for each component (submodule or cloned repos). Added clean and update to phony target. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d23183e..605ad7f 100644 --- a/Makefile +++ b/Makefile @@ -129,6 +129,13 @@ install: build @echo "Installing Hyprland" sudo $(MAKE) -C Hyprland install +update: + @echo "Updating module components..." + sudo git submodule foreach \ + 'git pull origin $(git rev-parse --abbrev-ref HEAD)' + cd tomlplusplus && sudo git pull origin $(git rev-parse --abbrev-ref HEAD) + cd libxcb-error && sudo git pull origin $(git rev-parse --abbrev-ref HEAD) + test: build @echo "Be real, you don't want to do this, so we'll abort." $(error No test-suite implemented) @@ -137,4 +144,4 @@ clean: @echo "Cleaning up from build process..." sudo rm -rf $(addsuffix /build, $(COMPONENTS)) >/dev/null 2>&1 -.PHONY : all build install test +.PHONY : all build install test clean update