dotfiles/Makefile

14 lines
326 B
Makefile

install: dotfiles git-hooks
# Install dotfiles in users home directory
dotfiles:
@if [ -d dotfiles ]; then \
cp -r ./dotfiles/. $HOME \
rm -rf dotfiles \
else \
echo "Dotfiles already installed or folder is missing"; \
fi
# Use tracked git hooks
git-hooks:
git config --local core.hooksPath .local/share/git/hooks