-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (21 loc) · 828 Bytes
/
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
# https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
help:
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
build: ## Docker: build docker image
@docker build --force-rm --pull --tag joorem-dotfiles .
clean: ## Docker: delete docker image
@docker image rm joorem-dotfiles
run: ## Docker: run docker image
@docker run --rm --interactive --tty joorem-dotfiles zsh
docker: | build run ## Docker: build and run docker image
update: ## Update: Vim plugins, brew packages, Git submodules
@echo "Updating:"
@echo " - Vim plugins"
@vim -E -s -u ~/.vimrc +PlugUpdate +qall; /bin/echo -n
@echo " - brew packages"
@brew upgrade
@brew cleanup
@echo " - git submodules"
@git submodule update --rebase