Updated Makefile

Amended privilege elevations. Note: `make build` should be used and when
building libraries, user will be prompt appropriately when those
libraries need to be installed before other components are built.
This commit is contained in:
Ethan Smith-Coss 2024-07-01 19:19:20 +01:00
parent 5ac22f4dd3
commit 4a4c0ff1cf
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -131,10 +131,10 @@ install: build
update: update:
@echo "Updating module components..." @echo "Updating module components..."
sudo git submodule foreach \ git submodule foreach \
'git pull origin $(git rev-parse --abbrev-ref HEAD)' 'git pull origin $(git rev-parse --abbrev-ref HEAD)'
cd tomlplusplus && sudo git pull origin $(git rev-parse --abbrev-ref HEAD) cd tomlplusplus && git pull origin $(git rev-parse --abbrev-ref HEAD)
cd libxcb-error && sudo git pull origin $(git rev-parse --abbrev-ref HEAD) cd libxcb-error && git pull origin $(git rev-parse --abbrev-ref HEAD)
test: build test: build
@echo "Be real, you don't want to do this, so we'll abort." @echo "Be real, you don't want to do this, so we'll abort."
@ -142,6 +142,6 @@ test: build
clean: clean:
@echo "Cleaning up from build process..." @echo "Cleaning up from build process..."
sudo rm -rf $(addsuffix /build, $(COMPONENTS)) >/dev/null 2>&1 rm -rf $(addsuffix /build, $(COMPONENTS)) >/dev/null 2>&1
.PHONY : all build install test clean update .PHONY : all build install test clean update