blob: 829ea1333d1ec0d583d4de1b72c12c9784145578 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
INTO = $(HOME)
INSTALL = \
aspell.en.pws \
bashrc \
ctags \
emacs.d \
gitconfig \
gitignore \
vimrc \
vim \
tmux.conf
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)/.local/share/vim:
@mkdir -p $(HOME)/.local/share/vim
.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)/.local/share/vim
|