-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (21 loc) · 1.07 KB
/
Makefile
File metadata and controls
23 lines (21 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.SILENT: install clean
install:
if [[ "$(realpath ${HOME}/.config/nvim)" = "${PWD}" ]]; then \
echo "Nothing to do"; \
elif [[ -e "${HOME}/.config/nvim" ]]; then \
echo "ERROR: Path is not symlinked to this directory!"; \
exit 1; \
else \
ln -s "${PWD}" "${HOME}/.config/nvim"; \
echo "Installed to \"${HOME}/.config/nvim\""; \
fi;
clean:
if [[ "$(realpath ${HOME}/.config/nvim)" = "${PWD}" ]]; then \
rm -rf "${HOME}/.config/nvim"; \
echo "Removed from \"${HOME}/.config/nvim\""; \
elif [[ -e "${HOME}/.config/nvim" ]]; then \
echo "ERROR: Path is not symlinked to this directory!"; \
exit 1; \
else \
echo "Nothing to do"; \
fi;