blob: 22658233b929d15183573bbf59d8c415e0eaf266 (
plain) (
tree)
|
|
.POSIX:
include ../common.mk
XINITRC_ORDER = 80
install: xmonad-autofocus-output
$(CHECK_INSTALLED) xwallpaper
$(CHECK_INSTALLED) xcman
$(CHECK_INSTALLED) pdeath
$(CHECK_INSTALLED) mate-panel
-$(CHECK_INSTALLED) mate-settings-daemon
mkdir -p -- ~/.config/X11/xinit/xinitrc.d
test ! -d ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xmonad
ln -sf -- ~/.dotfiles/xmonad/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xmonad
$(CHECK_INSTALLED) general-preprocessor
$(CHECK_INSTALLED) xpybar
mkdir -p -- ~/.xmonad
test ! -d ~/.xmonad/xmonad.hs
ln -sf -- ~/.dotfiles/xmonad/xmonad.hs ~/.xmonad/xmonad.hs
make xmonad.hs
mkdir -p ~/.local/bin
ln -sf -- ~/.dotfiles/xmonad/xmonad-autofocus-output ~/.local/bin
xmonad-autofocus-output: xmonad-autofocus-output.c
$(CC) -o $@ $@.c -Wall -s -lX11 -lXtst
include xmonad.mk
uninstall:
-unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xmonad
-rmdir -- ~/.config/X11/xinit/xinitrc.d
-rmdir -- ~/.config/X11/xinit
-rmdir -- ~/.config/X11
-rm -rf -- ~/.xmonad
-make clean
clean:
-rm -f xmonad.hs xmonad-autofocus-output
.PHONY: install uninstall clean
|