-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 740 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 740 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
dotfiles: ## Setup dotfiles
./dotfiles.sh
brew: ## Setup brew packages
./brew.sh
.PHONY: phpswitch
phpswitch: ## Setup phpswitch
@. _functions.sh && setup_phpswitch
.PHONY: setup_pie
setup_pie: ## Setup PIE (PHP installer for extensions)
@. _functions.sh && setup_php_installer_for_extensions
macos: dotfiles brew phpswitch setup_pie ## Setup dotfiles, brew packages, phpswitcher and PIE
update: ## Update project
@git pull origin main
@$(MAKE) dotfiles
@$(MAKE) phpswitch
@. _variables.sh && source "$${HOME}/.$${CURRENT_SHELL}rc"
.DEFAULT_GOAL := help
help:
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'