-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (37 loc) 路 1.05 KB
/
Copy pathMakefile
File metadata and controls
45 lines (37 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
define _help
echo 'up' "\t""\t" ': Do dotfile setup at once'
echo 'unlink' "\t""\t" ': Unlink & remove all synbolic links'
echo ""
echo 'init' "\t""\t" ': Prepare for installation'
echo 'link' "\t""\t" ': Put all symbolic links'
echo 'defaults' "\t" ': Configure for Darwin'
echo 'install' "\t" ': Install plugins and packages'
echo ""
echo 'brewfile' "\t" ': Export `Brewfile` with only manually installed formulae and casks'
endef
.PHONY: default
default:
@$(call _help)
# Put config files and install brew packages (darwin)
.PHONY: up
up: init link defaults install
.PHONY: unlink
unlink: scripts/unlink.sh
sh `pwd`/scripts/unlink.sh
.PHONY: init
init: scripts/init.sh
sh `pwd`/scripts/init.sh
# Put config files
.PHONY: link
link: scripts/link.sh
sh `pwd`/scripts/link.sh
.PHONY: defaults
defaults: scripts/defaults.sh
sh `pwd`/scripts/defaults.sh
# Install plugins and packages
.PHONY: install
install: scripts/install.sh
sh `pwd`/scripts/install.sh
.PHONY: brewfile
brewfile: scripts/brewfile.sh
sh `pwd`/scripts/brewfile.sh > Brewfile