blob: d135e27d1e4632cc30c8ce240871e12938016806 (
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
XINITRC_ORDER = 15
# Testing that xwallpaper is installed because setres calls it
# Testing that python3 is installed because setres is written in it
install:
$(CHECK_INSTALLED) xwallpaper
$(CHECK_INSTALLED) python3
mkdir -p -- ~/.config/X11/xinit/xinitrc.d
test ! -d ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xrandr
ln -sf -- ~/.dotfiles/xorg-xrandr/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xrandr
mkdir -p -- ~/.local/bin
make -C setres
ln -sf -- ~/.dotfiles/xorg-xrandr/setres/setres ~/.local/bin
uninstall:
-unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xrandr
-rmdir -- ~/.config/X11/xinit/xinitrc.d
-rmdir -- ~/.config/X11/xinit
-rmdir -- ~/.config/X11
-rmdir -- ~/.local/bin/setres
-make -C setres reallyclean
.PHONY: install uninstall
|