OS := $(shell uname -s) LN = @ln -sf ifeq ($(OS),Darwin) include Makefile.darwin else include Makefile.linux endif .PHONY: install-general install-general: @mkdir -p $(HOME)/.config @mkdir -p $(HOME)/workspace/ @curl -s https://github.com/fcuny.keys -o $(HOME)/.ssh/authorized_keys $(LN) $(PWD)/aspell.en.pws $(HOME)/.aspell.en.pws $(LN) $(PWD)/config/git $(HOME)/.config/ $(LN) $(PWD)/emacs $(HOME)/.config/ $(LN) $(PWD)/tmux.conf $(HOME)/.tmux.conf $(LN) $(PWD)/zshenv $(HOME)/.zshenv $(LN) $(PWD)/zshrc $(HOME)/.zshrc @git config --local user.email "franck@fcuny.net" @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