aboutsummaryrefslogblamecommitdiffstats
path: root/git/Makefile
blob: 13c37407c9132a9af610e40007bf3936da5f4010 (plain) (tree)
1
2
3
4
5
6
7
8
9
       
                    

        

                                                                


                                                                           


                                                  

          

                                       

                                               
                                  

                         
.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