about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRabbit Whispers <us@starfall.systems>2025-03-20 13:46:04 -0500
committerRabbit Whispers <us@starfall.systems>2025-03-20 13:46:04 -0500
commitbf5c887a44cede55fc938e13b0386c05eea06d32 (patch)
tree8df7cef2599e819daa2d3229c13b45688130ec3e
parentc1b30ff2dfbbacd6d1d573964929b5f21093b9ad (diff)
don't break make when qterminal or xfce4-terminal isn't installed
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7f21cac..d455da0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,10 @@
 .PHONY: install
 
 install:
-	install -Dm 644 -t $${HOME}/.local/share/xfce4/terminal/colorschemes xfce4-terminal/*.theme
-	sudo install -Dm 644 -t /usr/share/qtermwidget6/color-schemes QTerminal/*.colorscheme
+	@if command -v xfce4-terminal >/dev/null; then \
+		install -Dm 644 -t $${HOME}/.local/share/xfce4/terminal/colorschemes xfce4-terminal/*.theme; \
+	fi
+	@if command -v qterminal >/dev/null; then \
+		echo "sudo needed to install QTerminal theme globally"; \
+		sudo install -Dm 644 -t /usr/share/qtermwidget6/color-schemes QTerminal/*.colorscheme; \
+	fi