Updated Makefile

Added update recipe to pull the latest commits for each component
(submodule or cloned repos).

Added clean and update to phony target.
This commit is contained in:
Ethan Smith-Coss 2024-07-01 19:03:35 +01:00
parent b8f1af3173
commit 5ac22f4dd3
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

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