aboutsummaryrefslogtreecommitdiffstats
path: root/python/Makefile
blob: 271827af8154de53584484c2cfa199ac01ef602c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.POSIX:
include ../common.mk

install:
	mkdir -p -- ~/.var/cache
	test ! -d ~/.python_history
	ln -sf .var/cache/python_history ~/.python_history
	mkdir -p -- ~/.config/profile.d
	test ! -d ~/.config/profile.d/python
	ln -sf -- ~/.dotfiles/python/user-profile ~/.config/profile.d/python

uninstall:
	-unlink -- ~/.config/profile.d/python
	-rmdir -- ~/.config/profile.d
	-unlink -- ~/.var/cache/python_history
	-unlink -- ~/.python_history

.PHONY: install uninstall