-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 853 Bytes
/
Makefile
File metadata and controls
40 lines (31 loc) · 853 Bytes
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
.DEFAULT_GOAL := all
HOMEBREW := $(shell command -v brew 2>/dev/null)
.PHONY: all
all: brew_bundle update_vscode_config mise_install dotfile_update
.PHONY: brew_bundle
brew_bundle: required_homebrew
brew bundle
.PHONY: dotfile_update
dotfile_update:
chezmoi update
.PHONY: install_homebrew
install_homebrew:
/bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
.PHONY: update_vscode_config
update_vscode_config:
bash vscode/install.sh
.PHONY: mise_install
mise_install:
mise install
.PHONY: setup_hooks
setup_hooks:
git config core.hooksPath .githooks
@echo "Git hooks configured (.githooks/)"
.PHONY: required_homebrew
required_homebrew:
ifndef HOMEBREW
@echo "Homebrew is not installed. Installing Homebrew..."
@$(MAKE) install_homebrew
else
@echo "Homebrew is already installed."
endif