INTO = $(HOME) INSTALL = \ agignore \ aspell.en.pws \ ctags \ emacs.d \ gitconfig \ gitignore \ tmux.conf \ zshenv \ zshrc INSTALLED = $(patsubst %,$(INTO)/.%,$(INSTALL)) LN = @ln -sf $(INTO)/.% : % @[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak $(LN) $(PWD)/$< $@ $(HOME)/.ssh/authorized_keys: @curl https://github.com/fcuny.keys -o $(HOME)/.ssh/authorized_keys $(HOME)/workspace: @mkdir -p $(HOME)/workspace/ $(HOME)/Documents/screenshots: @mkdir -p $(HOME)/GDrive/screenshots .PHONE: osx osx: @./scripts/osx.sh .PHONY: go-setup go-setup: @go get -u github.com/kisielk/errcheck @go get -u github.com/rogpeppe/godef @go get -u github.com/zmb3/gogetdoc @go get -u golang.org/x/tools/cmd/goimports @go get -u golang.org/x/tools/cmd/guru .PHONY: git git: @git config --local user.email "franck.cuny@gmail.com" @git config --local user.name "Franck Cuny" .PHONY: check-dead check-dead: @find ~ -maxdepth 1 -name '.*' -type l -exec test ! -e {} \; -print .PHONY: clean-dead clean-dead: @find ~ -maxdepth 1 -name '.*' -type l -exec test ! -e {} \; -delete .PHONY: install install: $(INSTALLED) $(HOME)/workspace $(HOME)/.ssh/authorized_keys $(HOME)/Documents/screenshots osx