/
Makefile
76 lines (56 loc) · 2.26 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
.DEFAULT_GOAL := help
MAKEFLAGS += --always-make
# INFO: 参考サイト - https://postd.cc/auto-documented-makefile/
help: ## subcommand list and description.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
nvim-build: ## building neovim head.
@./scripts/nvim_build.sh
nvim-night: ## download neovim at version nightly build.
@./scripts/nvim_dl.sh nightly
nvim-stable: ## download neovim at version stable build.
@./scripts/nvim_dl.sh
true-color: ## 24-bit-color.sh
@curl -s \
https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh \
| bash
@./scripts/termcolors
zsh-bench: ## zsh bench mark with hyperfine used.
@hyperfine -w 5 -r 100 'zsh -i -c exit'
nvim-bench: ## neovim bench mark with vim-startuptime used.
-@vim-startuptime -vimpath nvim -count 100 | head -6
arch_iso: ## Download Arch Linux iso image at latest, and verification.
@./scripts/arch_iso.sh
pkglist: ## Update Arch Linux package list.
@./scripts/update_pkglist.sh
path: ## List up for $PATH
@printenv \
| rg '^PATH' \
| sed -e 's/PATH=//' \
| sed -e 's/:/\n/g'
repolist: ## Update ghq management of repository list.
@ghq list > ./document/repolist.txt
repoget: ## Get and update ghq management repositories.
@cat ./document/repolist.txt | ghq get -p -u --parallel
work_repolist: ## Update ghq management of repository list.
@./scripts/work_repolist.sh view
work_repoget: ## Get and update ghq management repositories.
@./scripts/work_repolist.sh
aqua-install: ## Install aqua
@curl -sSfLo /tmp/aqua-installer https://raw.githubusercontent.com/aquaproj/aqua-installer/v3.0.1/aqua-installer
@echo 'fb4b3b7d026e5aba1fc478c268e8fbd653e01404c8a8c6284fdba88ae62eda6a /tmp/aqua-installer' | sha256sum -c
@bash /tmp/aqua-installer
nix-install: ## Install nix.
@curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
symlink: ## expand symlinks
@./scripts/expand_symlink.sh
mkdir: ## make direcotries of required
@mkdir -p ${HOME}/.local/bin
@mkdir -p ${HOME}/.local/dotfiles
@mkdir -p ${HOME}/.config
@mkdir -p ${HOME}/.cache
init: ## expand config files.
@make mkdir
@make symlink
@make aqua-install
@./scripts/setup.sh