-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·50 lines (41 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SHELL := /usr/bin/env bash
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
MKFILE_DIR := $(dir $(MKFILE_PATH))
.PHONY: config_vim config_zsh \
config_aliasrc \
config_functionrc \
config_gitconfig \
config_pip
all: config_vim \
config_zsh \
config_aliasrc \
config_functionrc \
config_gitconfig \
config_pip
config_pip:
@echo "Config user pip config"
ln -sf ${MKFILE_DIR}.config/pip ${HOME}/.config/pip
config_vim:
@echo "Config vimrc"
echo ${MKFILE_DIR}
ln -sf ${MKFILE_DIR}.vimrc ${HOME}/.vimrc
ln -sf ${MKFILE_DIR}.vim ${HOME}/.vim
config_zsh:
@echo "Config zshrc"
echo ${MKFILE_DIR}
ln -sf ${MKFILE_DIR}.zshrc ${HOME}/.zshrc
config_aliasrc:
@echo "Config aliasrc"
echo ${MKFILE_DIR}
ln -sf ${MKFILE_DIR}.aliasrc ${HOME}/.aliasrc
config_functionrc:
@echo "Config functionrc"
echo ${MKFILE_DIR}
ln -sf ${MKFILE_DIR}.functionrc ${HOME}/.functionrc
git_config:
@echo "Config gitconfig"
echo ${MKFILE_DIR}
cat ${MKFILE_DIR}git/.gitconfig > ${HOME}/.gitconfig
cat ${MKFILE_DIR}git/.gitignore.home > ${HOME}/.gitignore
cat ${MKFILE_DIR}git/.gitignore_global > ${HOME}/.gitignore_global
cat ${MKFILE_DIR}git/.gitconfig.xyz > ${HOME}/.gitconfig.xyz