-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
29 lines (23 loc) · 1.03 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
all: files brew pip2 pip3 tmux_plugins ## Make it all!
files: ## Ensure files are up to date
./manage
intellij_backup: ## Back up IntelliJ settings.
@rm -rf /tmp/intellij-settings
@echo "Copying IntelliJ to /tmp/intellij-settings"
@cp -r ~/Library/Preferences/IntelliJIdea2019.3/settingsRepository/repository /tmp/intellij-settings
@rm -rf /tmp/intellij-settings/.git
@rm -f /tmp/intellij-settings/vim_settings.xml
@rm -f /tmp/intellij-settings/find.xml
@echo "Nuking ${HOME}/dotfiles/intellij-settings"
@rm -rf ~/dotfiles/intellij-settings
@mv -v /tmp/intellij-settings/ ~/dotfiles/intellij-settings
rust: ## Install rust ecosystem
@command -v rustc &> /dev/null || (echo "Installing rust..." && curl https://sh.rustup.rs -sSf | sh)
brew: ## Install formulas in Brewfile
brew bundle
node: ## Install local npm packages
npm install
.DEFAULT_GOAL := help
.PHONY: help
help:
@perl -nle'print $& if m{^[a-zA-Z0-9_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'