(Minor): Updated Changelog
This commit is contained in:
25
Makefile
25
Makefile
@@ -34,7 +34,7 @@ RST := \033[0m
|
||||
## ─── targets ────────────────────────────────────────────────
|
||||
|
||||
.PHONY: all deps build install uninstall clean test lint fmt vet \
|
||||
run-preview release help
|
||||
run-preview release enable update help
|
||||
|
||||
deps: ## install system dependencies
|
||||
@printf " $(BLUE)%-10s$(RST) checking dependencies...\n" "DEPS"
|
||||
@@ -112,6 +112,29 @@ release: clean ## build with version info
|
||||
@printf "\n"
|
||||
@$(MAKE) build
|
||||
|
||||
enable: ## disable other DM + enable latchd
|
||||
@printf " $(YELLOW)%-10s$(RST) switching to latchd...\n" "ENABLE"
|
||||
@if systemctl is-active display-manager.service >/dev/null 2>&1; then \
|
||||
printf " $(DIM)%-10s$(RST) stopping current display manager\n" ""; \
|
||||
sudo systemctl stop display-manager.service; \
|
||||
fi
|
||||
@if [ -L /etc/systemd/system/display-manager.service ] \
|
||||
&& ! readlink /etc/systemd/system/display-manager.service | grep -q $(BINARY); then \
|
||||
printf " $(DIM)%-10s$(RST) disabling aliased display manager\n" ""; \
|
||||
sudo systemctl disable display-manager.service; \
|
||||
fi
|
||||
@sudo systemctl enable $(BINARY).service
|
||||
@printf " $(GREEN)%-10s$(RST) latchd enabled — reboot or run 'sudo systemctl start latchd'\n" "ENABLE"
|
||||
|
||||
update: ## uninstall → git pull → rebuild → reinstall
|
||||
@printf " $(YELLOW)%-10s$(RST) removing previous install...\n" "UPDATE"
|
||||
@sudo $(MAKE) uninstall
|
||||
@printf " $(CYAN)%-10s$(RST) pulling latest...\n" "UPDATE"
|
||||
@git pull
|
||||
@printf " $(BLUE)%-10s$(RST) rebuilding...\n" "UPDATE"
|
||||
@sudo $(MAKE) install
|
||||
@printf " $(GREEN)%-10s$(RST) updated — run 'sudo make enable' to switch DMs\n" "UPDATE"
|
||||
|
||||
help: ## print this help
|
||||
@printf " $(BOLD)latchd$(RST) — tui display manager\n"
|
||||
@printf " $(DIM)version $(VERSION) commit $(COMMIT)$(RST)\n"
|
||||
|
||||
Reference in New Issue
Block a user