Makefile 808 Bytes
Newer Older
1 2 3 4 5
prefix=~

dotfiles:

install: dotfiles
6 7 8
	install -m 0644 dot.tcshrc $(prefix)/.tcshrc
	install -m 0644 dot.bash_profile $(prefix)/.bash_profile
	install -m 0644 dot.bashrc $(prefix)/.bashrc
Jørn Åne's avatar
Jørn Åne committed
9
	install -m 0644 dot.vimrc $(prefix)/.vimrc
10
	install -m 0644 dot.zshenv $(prefix)/.zshenv
11
	mkdir -p $(prefix)/.config/fish
12 13 14
	install -m 0644 dot.config/fish/config.fish $(prefix)/.config/fish/config.fish

diff:
Jørn Åne's avatar
Jørn Åne committed
15 16 17 18 19
	diff dot.tcshrc $(prefix)/.tcshrc || true 2>/dev/null
	diff dot.bash_profile $(prefix)/.bash_profile || true 2>/dev/null
	diff dot.bashrc $(prefix)/.bashrc || true 2>/dev/null
	diff dot.vimrc $(prefix)/.vimrc || true 2>/dev/null
	diff dot.zshenv $(prefix)/.zshenv || true 2>/dev/null
20
	diff dot.config/fish/config.fish $(prefix)/.config/fish/config.fish || true $(prefix)/.config/fish/config.fish 2>/dev/null