-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
80 lines (68 loc) · 2.88 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
all: install
install:
mkdir -p ~/.tmux
mkdir -p ~/.vim/plugin && \cp -rf $(PWD)/plugin/* ~/.vim/plugin/
mkdir -p ~/.config/alacritty
[[ -f ~/.vimrc ]] || ln -s $(PWD)/vimrc ~/.vimrc
[[ -f ~/.bashrc ]] || ln -s $(PWD)/bashrc ~/.bashrc
[[ -f ~/.zshrc ]] || ln -s $(PWD)/zshrc ~/.zshrc
[[ -f ~/.tmux.conf ]] || ln -s $(PWD)/tmuxconf ~/.tmux.conf
[[ -f ~/.tigrc ]] || ln -s $(PWD)/tigrc ~/.tigrc
[[ -f ~/.gitconfig ]] || ln -s $(PWD)/gitconfig-xm-tech ~/.gitconfig
[[ -f ~/.aliases.zsh ]] || ln -s $(PWD)/aliases.zsh ~/.aliases.zsh
[[ -f ~/.funcs.zsh ]] || ln -s $(PWD)/funcs.zsh ~/.funcs.zsh
[[ -f ~/.antigen.zsh ]] || ln -s $(PWD)/antigen.zsh ~/.antigen.zsh
[[ -f ~/.antigen-load.zsh ]] || ln -s $(PWD)/antigen-load.zsh ~/.antigen-load.zsh
[[ -f ~/.git.zsh ]] || ln -s $(PWD)/git.zsh ~/.git.zsh
[[ -f ~/.fzf-git.sh ]] || ln -s $(PWD)/fzf-git.sh/fzf-git.sh ~/.fzf-git.sh
[[ -f ~/.p10k.zsh ]] || ln -s $(PWD)/p10k.zsh ~/.p10k.zsh
[[ -f ~/.z.lua ]] || ln -s $(PWD)/z.lua/z.lua ~/.z.lua
[[ -f ~/.cht.sh ]] || ln -s $(PWD)/cht.sh ~/.cht.sh
[[ -f ~/.ccls_load.sh ]] || ln -s $(PWD)/ccls_load.sh ~/.ccls_load.sh
[[ -f ~/.fix_gh_contribution.sh ]] || ln -s $(PWD)/fix_gh_contribution.sh ~/.fix_gh_contribution.sh
[[ -f ~/.config/alacritty/alacritty.yml ]] || ln -s $(PWD)/alacritty.yml ~/.config/alacritty/alacritty.yml
[[ -f ~/.config/alacritty/color.yml ]] || ln -s $(PWD)/color.yml ~/.config/alacritty/color.yml
# [[ -f ~/.clang-format ]] || ln -s $(PWD)/clang-format ~/.clang-format
# fix the lua.h can not found bug when editting a c source file
ln -s /usr/local/Cellar/lua/5.4.4_1/include/lua/luaconf.h /usr/local/include/luaconf.h
ln -s /usr/local/Cellar/lua/5.4.4_1/include/lua/lauxlib.h /usr/local/include/lauxlib.h
ln -s /usr/local/Cellar/lua/5.4.4_1/include/lua/lua.hpp /usr/local/include/lua.hpp
ln -s /usr/local/Cellar/lua/5.4.4_1/include/lua/lualib.h /usr/local/include/lualib.h
ln -s /usr/local/Cellar/lua/5.4.4_1/include/lua/lua.h /usr/local/include/lua.h
# \cp -f coc-settings.json ~/.vim/coc-settings.json
git submodule update --init --recursive
# don't show last login message
touch ~/.hushlogin
bundle_dump:
brew bundle dump --force
bundle:
brew bundle
coc_settings_up:
\cp -f coc-settings.json ~/.vim/coc-settings.json
clean:
rm -f ~/.vimrc
rm -f ~/.bashrc
rm -f ~/.zshrc
rm -f ~/.tmux.conf
rm -f ~/.tigrc
rm -f ~/.gitconfig
rm -f ~/.aliases.zsh
rm -f ~/.funcs.zsh
rm -f ~/.antigen.zsh
rm -f ~/.antigen-load.zsh
rm -f ~/.git.zsh
rm -f ~/.fzf-git.sh
rm -f ~/.p10k.zsh
rm -f ~/.z.lua
rm -f ~/.cht.sh
rm -f ~/.ccls_load.sh
rm -f ~/.fix_gh_contribution.sh
rm -f ~/.config/alacritty/alacritty.yml
rm -f ~/.config/alacritty/color.yml
rm -f /usr/local/include/luaconf.h
rm -f /usr/local/include/lauxlib.h
rm -f /usr/local/include/lua.hpp
rm -f /usr/local/include/lualib.h
rm -f /usr/local/include/lua.h
# rm -f ~/.clang-format
.PHONY: all clean install bundle bundle_dump