aboutsummaryrefslogtreecommitdiffstats
path: root/base/Makefile
blob: 6beaf4cd983893065c021a41590afe636b269b66 (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
.POSIX:
include ../common.mk

FACE = penguin.png

install:
	mkdir -p -- ~/.config
	test ! -d ~/.profile
	test ! -d ~/.config/profile
	test ! -d ~/.config/user-dirs.locale
	test ! -d ~/.config/face
	test ! -d ~/.face
	test ! -d ~/.face.icon
	ln -sf -- .config/profile ~/.profile
	ln -sf -- ~/.dotfiles/base/profile ~/.config/profile
	ln -sf -- ~/.dotfiles/base/user-dirs.locale ~/.config/
	ln -sf -- ~/.dotfiles/base/faces/$(FACE) ~/.config/face
	ln -sf -- .face ~/.face.icon
	ln -sf -- .config/face ~/.face

uninstall:
	-unlink -- ~/.config/profile
	-unlink -- ~/.config/user-dirs.locale
	-unlink -- ~/.profile

.PHONY: install uninstall