/
Makefile
57 lines (45 loc) · 1.42 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
BASEDIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
DOTBOT_CONFIG=dotbot.yaml
DOTBOT_DIR=dotbot
.PHONY: install
install: submodules dotbot update_go rustup choosenim vim_plugin vim_mkspell install_gef systemd
.PHONY: clean
clean:
find -type d -name '__pycache__' -exec rm -rf {} +;
find -type d -name '.mypy_cache' -exec rm -rf {} +;
.PHONY: dotbot
dotbot:
set -e; \
cd "${BASEDIR}"; \
git submodule update --init --recursive "${DOTBOT_DIR}"; \
"${BASEDIR}/${DOTBOT_DIR}/bin/dotbot" -d "${BASEDIR}" -c "${DOTBOT_CONFIG}"
.PHONY: update_go
update_go:
./bin/update-go
.PHONY: rustup
rustup:
rustup update nightly
rustup update stable
cargo install -f cargo-edit
cargo install -f cargo-geiger
.PHONY: choosenim
choosenim:
choosenim update stable
.PHONY: submodules
submodules:
git submodule update --init --recursive
git submodule update --remote
.PHONY: vim_plugin
vim_plugin:
curl -q -s -S -L --create-dirs -o ~/.local/share/nvim/site/autoload/plug.vim 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
nvim --headless -c 'silent PlugClean!' -c 'silent PlugUpdate' -c 'silent PlugInstall' -c 'quitall!'
.PHONY: vim_mkspell
vim_mkspell:
vim-mkspell
.PHONY: install_gef
install_gef:
curl -q -s -S -L --create-dirs -o ~/.local/share/gef/init.py 'https://github.com/hugsy/gef/raw/master/gef.py'
.PHONY: systemd
systemd:
systemctl --user daemon-reload
systemctl --user enable --now tbunread.service