-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
39 lines (29 loc) · 1.11 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
SHELL := /bin/bash
.POSIX:
.PHONY: help dots up install subup xcode macos linux link
.DEFAULT_GOAL := up
help: ## Show this help content
@echo "Usage: make [command]"
@echo "Make utility to help with my ~/.dotfiles management."
@echo
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@echo
dots: xcode install
up: ## Runs the main update script (idempotent); use after `make install`
$(HOME)/.dotfiles/bin/dotup
install: ## Runs the main dotbot install script (not for updating)
./install
link: ## Runs the the link function of the main install script
./install --only link
xcode: ## Install Xcode + CLI tools
$(HOME)/.dotfiles/bin/xcode-install -f
macos: ## (WIP) Runs the macos-specific dotbot install script
./macos
# ./install -vv -c install-mac.conf.yaml
linux: ## (WIP) Runs the linux-specific dotbot install script
./linux
# ./install -vv -c install-linux.conf.yaml
all: ## (WIP) Runs all platform-specific dotbot install scripts
macos linux
subup: ## Updates git submodules
git submodule update --remote --merge