summaryrefslogtreecommitdiff
path: root/.zsh/Makefile
blob: 74a4bfc60044643e710949b0fd59c0b1f1dbe687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
HOME=/home/urbain
TARGETS=$(addprefix $(HOME)/,.zsh .zshrc .zgen)

all : $(TARGETS)

$(HOME)/.zshrc :
	rm -f $@ && ln -s $(PWD)/zshrc $@

$(HOME)/.zsh :
	rm -f $@ && ln -s $(PWD) $@

$(HOME)/.zgen : $(PWD)/zgen
	cp -r $(PWD)/zgen $@

clean :
	rm -f $(HOME)/.zsh $(HOME)/.zshrc
	rm -rf $(HOME)/.zgen