PREFIX := /usr/local
HOMEBREW_INSTALLER=https://raw.githubusercontent.com/Homebrew/install/master/install
BREW_BUNDLE=$(PREFIX)/Homebrew/Library/Taps/homebrew/homebrew-bundle
BREW=$(PREFIX)/bin/brew
XCODE=/Applications/Xcode.app

all: packages

$(XCODE):
	@xcode-select --install

$(BREW): $(XCODE)
	@echo Installing Homebrew
	@ruby -e "`curl -fsSL $(HOMEBREW_INSTALLER)`"
	@brew doctor

$(BREW_BUNDLE): $(BREW)
	@brew tap Homebrew/bundle

packages: $(BREW_BUNDLE)
	@HOMEBREW_CASK_OPTS="--appdir=~/bin/apps" \
		brew bundle --file=macos/Brewfile

PREFIX := /usr/local
HOMEBREW_INSTALLER=https://raw.githubusercontent.com/Homebrew/install/master/install
BREW_BUNDLE=$(PREFIX)/Homebrew/Library/Taps/homebrew/homebrew-bundle
BREW=$(PREFIX)/bin/brew
XCODE=/Applications/Xcode.app

all: packages

$(XCODE):
	@xcode-select --install

$(BREW): $(XCODE)
	@echo Installing Homebrew
	@ruby -e "`curl -fsSL $(HOMEBREW_INSTALLER)`"
	@brew doctor

$(BREW_BUNDLE): $(BREW)
	@brew tap Homebrew/bundle

packages: $(BREW_BUNDLE)
	@HOMEBREW_CASK_OPTS="--appdir=~/bin/apps" \
		brew bundle --file=macos/Brewfile

services:
	@brew services start redshift

Add services target to macos init
[init] Add services target to macos init
