aboutsummaryrefslogtreecommitdiffstats
path: root/git/Makefile
blob: 13c37407c9132a9af610e40007bf3936da5f4010 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.POSIX:
include ../common.mk

install:
	mkdir -p -- ~/.config/git
	cat config ../.secrets/git/config > ~/.config/git/config
	mkdir -p -- ~/.config/bash/aliases.d
	test ! -d ~/.config/bash/aliases.d/git
	ln -sf -- ~/.dotfiles/git/bash-aliases ~/.config/bash/aliases.d/git
	$(CHECK_INSTALLED) dash
	mkdir -p -- ~/.local/bin
	ln -sf -- ~/.dotfiles/git/ge ~/.local/bin/

uninstall:
	-unlink -- ~/.config/git/config
	-rmdir -- ~/.config/git
	-unlink -- ~/.config/bash/aliases.d/git
	-rmdir -- ~/.config/bash/aliases.d
	-unlink -- ~/.local/bin/ge

.PHONY: install uninstall