blob: 8323e150f6b43d406e48950245a251d217dc434d (
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
32
|
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
|