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:
parent
b8f1af3173
commit
5ac22f4dd3
9
Makefile
9
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user