summary refs log tree commit diff
path: root/Makefile
blob: 38f2b619c954ee54c24afd556d4607133fdbe8ec (plain) (blame)
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
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)/workspace/
	@curl -s https://github.com/fcuny.keys -o $(HOME)/.ssh/authorized_keys
	$(LN) $(PWD)/aspell.en.pws $(HOME)/.aspell.en.pws
	$(LN) $(PWD)/gitconfig $(HOME)/.gitconfig
	$(LN) $(PWD)/gitignore $(HOME)/.gitignore
	$(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