-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (47 loc) · 1.72 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
SHELL := /usr/bin/env bash -euo pipefail -c
BREW_FLAGS := --no-upgrade
default: help
help:
@echo ' make brew/install # install missing things'
@echo ' make brew/outdated # list outdated deps that are mentioned in Brewfile'
@echo ' make brew/upgrade # upgrade all deps that are mentioned in Brewfile'
@echo ' make devbox # install and initialise devbox global config'
devbox:
wget https://github.com/jetpack-io/devbox/releases/download/0.5.7/devbox_0.5.7_linux_amd64.tar.gz
devbox-old:
@./init/devbox
# moreutils has a terrible version of parallel bundled with it,
# this snippet ensures all the moreutils binaries are linked
# then overwrites the moreutils parallel with the gnu parallel,
# and tests that it worked.
FIX_PARALLEL_MOREUTILS := brew unlink parallel sponge && \
brew link --force --overwrite moreutils && \
brew link --force --overwrite parallel sponge && \
parallel --version | head -n1 | grep -qE '^GNU parallel \d+' || \
{ echo "GNU parallel may not have installed correctly."; exit 1; }; \
echo "Fixed moreutils and GNU parallel conflict."
brew/outdated:
@brew-tools outdated_brewfile
brew/upgrade:
@brew unlink moreutils
@brew unlink parallel
@brew-tools upgrade_outdated_brewfile_deps moreutils parallel
@$(FIX_PARALLEL_MOREUTILS)
brew/upgrade-neovim-head:
@brew reinstall neovim
brew/install:
@brew unlink moreutils
@brew unlink parallel sponge
@brew-tools install
@$(FIX_PARALLEL_MOREUTILS)
brew/fix:
@brew unlink moreutils
@brew unlink parallel sponge
@$(FIX_PARALLEL_MOREUTILS)
upgrade-all: BREW_FLAGS :=
upgrade-all: brew/install
.PHONY: tmux
tmux: .tmux/reset.conf
.PHONY: .tmux/reset.conf
.tmux/reset.conf:
~/bin/generate-tmux-reset > "$@"