blob: a05d8ad83f2cee4d62259cdfb7b4c8d71062b082 (
plain) (
tree)
|
|
.POSIX:
include ../common.mk
install:
if test -L ~/.ssh; then \
test "$$(readlink -- ~/.ssh)" = ~/.dotfiles/.secrets/ssh; \
else \
test ! -e ~/.ssh && \
ln -sf -- ~/.dotfiles/.secrets/ssh ~/.ssh; \
fi
mkdir -p -- ../.secrets/ssh
mkdir -p -- ~/.config/bash/aliases.d
test ! -d ~/.config/bash/aliases.d/openssh
ln -sf -- ~/.dotfiles/openssh/bash-aliases ~/.config/bash/aliases.d/openssh
uninstall:
-unlink -- ~/.ssh
-unlink -- ~/.config/bash/aliases.d/openssh
-rmdir -- ~/.config/bash/aliases.d
.PHONY: install uninstall
|