aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 43f13a6d6a41854a31ed27c8026ab53b8b4610d7 (plain)
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
i3venv = "$(HOME)"/.local/share/i3/venv

all: install-with-i3

install:
	-ln -sfn "$(PWD)/ssh" "$(HOME)/.ssh"
	-ln -sfn "$(PWD)/gnupg" "$(HOME)/.gnupg"
	-ln -sf "$(PWD)/zsh/zshenv" "$(HOME)/.zshenv"
	-mkdir -p "$(HOME)/.cache/zsh"
	-mkdir -p "$(HOME)/.local/share/nvim/backup"
	-ln -sf "$(PWD)/mailcap" "$(HOME)/.mailcap"
	-ln -sf "$(PWD)/msmtprc" "$(HOME)/.msmtprc"
	-ln -sf "$(PWD)/taskrc" "$(HOME)/.taskrc"

$(i3venv):
	mkdir -p "$(i3venv)"
	python -m venv "$(i3venv)"
	"$(i3venv)"/bin/pip install --upgrade -e git+https://github.com/enkore/i3pystatus#egg=i3pystatus netifaces colour -e git+https://github.com/bastienleonard/pysensors#egg=sensors basiciw https://download.gnome.org/sources/pygobject/3.26/pygobject-3.26.0.tar.xz

install-with-i3: install $(i3venv)

~/misc/grawity/:
	-mkdir -p ~/misc/grawity

~/misc/grawity/code: ~/misc/grawity/
	-git clone https://github.com/grawity/code ~/misc/grawity/code

grawity-code: ~/misc/grawity/code
	-cd ~/misc/grawity/code; git pull
	-make -C ~/misc/grawity/code pklist

.PHONY: all install install-with-i3