diff options
-rw-r--r-- | Makefile | 9 |
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 |