-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
104 lines (76 loc) · 1.89 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
SHELL=/bin/bash
CP=/bin/cp
MKDIR=/bin/mkdir
RM=/bin/rm -f
RMRF=/bin/rm -rf
LN=/bin/ln -sf
NEOVIM=/usr/bin/nvim
all:
common:
@$(CP) ./wgetrc ~/.wgetrc
@$(MKDIR) -p ~/.config/nvim
@$(CP) ./vim/pathogen/vimrc ~/.vimrc
@$(CP) ./neovim/init.lua ~/.config/nvim/init.lua
@$(CP) ./tmux.conf ~/.tmux.conf
apt-update:
@apt-get -y update
apt-upgrade:
@apt-get -y upgrade
@apt-get -y autoremove
@apt-get -y autoclean
dnf-upgrade:
@dnf -y upgrade
@dnf -y autoremove
@dnf clean all
debian-init:
@$(SHELL) ./package-managers/debian.sh
@$(MAKE) git-update
debian-chore: apt-update apt-upgrade git-version vim-all neovim-all
fedora-init:
@$(SHELL) ./package-managers/fedora.sh
@$(MAKE) git-update
fedora-chore: dnf-upgrade git-version vim-all neovim-all
git-version:
@$(SHELL) ./git/git-version.sh
git-update:
@$(SHELL) ./git/git.sh
@$(MAKE) git-config
git-config:
@$(SHELL) ./git/git-config.sh
node:
@$(SHELL) ./node/install.sh
node-update:
@$(SHELL) ./node/update.sh
python:
@$(SHELL) ./python/python-install.sh
@$(SHELL) ./python/env.sh
docker-compose-latest:
@$(SHELL) ./docker/docker-compose.sh latest
docker-compose-all:
@$(SHELL) ./docker/docker-compose.sh all
texlive:
# More than 7GB
@$(SHELL) ./tex/texlive-install.sh
tlmgr:
# Won't work even with `sudo`. Run `sudo su` then this command
@tlmgr update --list
tlmgr-update:
# Won't work even with `sudo`. Run `sudo su` then this command
@$(SHELL) ./tex/tlmgr-update.sh
font:
@$(SHELL) ./vim/font.sh
### vim and neovim
vim-all: common
@$(SHELL) ./vim/pathogen/pathogen.sh vim all
@$(CP) ./vim/pathogen/vimrc ~/.vimrc
vim-basic: common
@$(SHELL) ./vim/pathogen/pathogen.sh vim basic
@$(CP) ./vim/pathogen/vimrc ~/.vimrc
neovim-stable:
@$(SHELL) ./neovim/install.sh stable
neovim-nightly:
@$(SHELL) ./neovim/install.sh nightly
neovim-all: common
@$(SHELL) ./neovim/vim-plug.sh
@$(NEOVIM) +PlugUpdate +qall
.PHONY: python node