-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (24 loc) · 917 Bytes
/
Makefile
File metadata and controls
28 lines (24 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: all install uninstall tags
all:
tags:
@printf "\e[38;5;208mWarning: required is universal-ctags.\e[0m\n"
@ctags -e -R --options=$$ZPFX/../zinit.git/share/zsh.ctags --languages=zsh \
--pattern-length-limit=250 --maxdepth=1
install:
@if [ -d "$$ZPFX" ]; then \
cp -vf functions/{zmake,msg} make-server "$$ZPFX/bin"; \
printf "\e[38;5;39mInstalled to $$ZPFX/bin\e[0m\n"; \
elif [ -d ~/bin ]; then \
cp -vf functions/{zmake,msg} make-server ~/bin; \
printf "\e[38;5;39mInstalled to ~/bin\e[0m\n"; \
elif [ -d ~/.local/bin ]; then \
cp -vf functions/{zmake,msg} make-server ~/.local/bin; \
printf "\e[38;5;39mInstalled to ~/.local/bin\e[0m\n"; \
else \
printf "\e[38;5;208mNo suitable …/bin directory found.\e[0m\n"; \
false; \
fi
uninstall:
rm -f "$$ZPFX"/{zmake,msg,make-server} \
~/bin/{zmake,msg,make-server} \
~/.local/bin/{zmake,msg,make-server}