-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 1.05 KB
/
Makefile
File metadata and controls
26 lines (18 loc) · 1.05 KB
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
.PHONY: help
.DEFAULT_GOAL := help
# Use zsh if installed, otherwise fall back to bash
SH := $(or $(shell command -v zsh 2>/dev/null),$(shell command -v bash 2>/dev/null),bash)
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
setup-shell: ## This sets up the shell config by pointing the shell to the dotfiles/shell folder.
@$(SH) setup setup_shell
backup-shell: ## This backsup your current shell config and stores it in $HOME/.dotfiles/backup
@$(SH) setup backup_shell
remove-shell: ## This removes the current shell config.
@$(SH) setup remove_shell
check-deps: ## This checks to make sure the various dependencies are installed, and if not it will tell you which ones are missing.
@$(SH) setup check_dependencies
install-deps: ## This will run through the various dependencies and install them if they are absent.
@$(SH) setup install_dependencies
fix-file: ## Use this when running into CLF -> LF encoding issues:
find . -type f -print0 | xargs -0 dos2unix