-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (41 loc) · 1.2 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env make --makefile
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(shell dirname $(mkfile_path))
.DEFAULT_GOAL := all
require-%:
@echo "Checking requirement: '$*'"
@which $*
powerline-fonts:
@git clone https://github.com/powerline/fonts.git
@./fonts/install.sh
@echo "Removing fonts installation directory"
@rm -rf ./fonts
brewtaps:
brew tap homebrew/cask-versions
brew-%:
brew install $*
galaxy-%:
@ansible-galaxy collection install $*
# -------------------------------- #
# Applications configuration block #
# -------------------------------- #
ansible: \
require-brew \
brewtaps \
brew-ansible \
brew-mas \
galaxy-geerlingguy.mac
vim: powerline-fonts
@mkdir -p ~/.vim/autoload ~/.vim/bundle
@curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
@echo "To download spell files, you always can use :verbose set spell command in VIM"
common: ansible
ansible-playbook --ask-become-pass ansible/common.yaml
3d: ansible
ansible-playbook --ask-become-pass ansible/3d-printing.yaml
ansible-%: ansible
ansible-playbook --ask-become-pass ansible/$*.yaml
all: \
common \
vim \
ansible-common