-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
83 lines (67 loc) · 1.32 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# This Makefile puts in place several tools that I like.
CURR_DIR = $(shell pwd)
.PHONY: all
all:
$(CURR_DIR)/install.sh
$(CURR_DIR)/install_mac.sh
programs: brews casks
# Homebrew setup
.PHONY: brews casks
BREWS= # Programs to be installed by Homebrew
BREWS+=brew-cask
BREWS+=ctags
BREWS+=ddate
BREWS+=ffmpeg
BREWS+=fish
BREWS+=fortune
BREWS+=ghc
BREWS+=git
BREWS+=irssi
BREWS+=lftp
BREWS+=readline
BREWS+=rlwrap
BREWS+=sl
BREWS+=ssh-copy-id
BREWS+=sshuttle
BREWS+=tree
BREWS+=wget
BREWS+=cmake
CASKS= # GUI programs to be installed by Homebrew
CASKS+=bittorrent-sync
CASKS+=calibre
CASKS+=dropbox
CASKS+=electric-sheep
CASKS+=google-drive
CASKS+=filezilla
CASKS+=firefox
CASKS+=flux
CASKS+=iterm2
CASKS+=launchrocket
CASKS+=mactex
CASKS+=menumeters
CASKS+=spotify
CASKS+=steam
CASKS+=virtualbox
CASKS+=vlc
CASKS+=wireshark
homebrew: /usr/local/bin/brew
casks: $(CASKS:%=cask-%)
brews: homebrew $(BREWS:%=brew-%)
brew-%: homebrew
@echo "Homebrew: installing $*..."
-@brew install $*
@echo "Done."
brewremove-%: homebrew
@echo "Homebrew: removing $*..."
-@brew uninstall $*
@echo "Done."
cask-%:
@echo "Brew-cask: installing $*..."
-@brew cask install $*
@echo "Done."
# Fish setup
.PHONY: addfish
addfish:
@echo "Fish: adding Fish in shell list..."
@sudo echo "/usr/local/bin/fish" >> /etc/shells
@echo "Fish: done."