From 1766a22686328b09f05a19e5ae1e7d9e92ff4dd4 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Sun, 6 Jun 2021 19:26:30 -0400 Subject: Add makefiles to build and stow configs --- X/makefile | 3 +++ alacritty/makefile | 2 ++ lemonbar/makefile | 3 +++ makefile | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 X/makefile create mode 100644 alacritty/makefile create mode 100644 lemonbar/makefile create mode 100644 makefile diff --git a/X/makefile b/X/makefile new file mode 100644 index 0000000..6621dc5 --- /dev/null +++ b/X/makefile @@ -0,0 +1,3 @@ +X: Xresources.m4 + m4 -I ../m4-defines Xresources.m4 > .Xresources + xrdb -load .Xresources diff --git a/alacritty/makefile b/alacritty/makefile new file mode 100644 index 0000000..5acad6a --- /dev/null +++ b/alacritty/makefile @@ -0,0 +1,2 @@ +alacritty: alacritty.m4 + m4 -I ../m4-defines alacritty.m4 > .alacritty.yml diff --git a/lemonbar/makefile b/lemonbar/makefile new file mode 100644 index 0000000..76b65aa --- /dev/null +++ b/lemonbar/makefile @@ -0,0 +1,3 @@ +input: + go build -o bin/lemonbar_input src/input.go + diff --git a/makefile b/makefile new file mode 100644 index 0000000..f217add --- /dev/null +++ b/makefile @@ -0,0 +1,61 @@ +STOW_CMD= stow --ignore="makefile|.*m4|src" +UNSTOW_CMD= stow -D + +process: X alacritty lemonbar + +remove: + $(UNSTOW_CMD) X/ + $(UNSTOW_CMD) alacritty/ + $(UNSTOW_CMD) bash/ + $(UNSTOW_CMD) bin/ + $(UNSTOW_CMD) bspwm/ + $(UNSTOW_CMD) csh/ + $(UNSTOW_CMD) gpg/ + $(UNSTOW_CMD) i3/ + $(UNSTOW_CMD) input/ + $(UNSTOW_CMD) mbsync/ + $(UNSTOW_CMD) msmtp/ + $(UNSTOW_CMD) mutt/ + $(UNSTOW_CMD) newsboat/ + $(UNSTOW_CMD) qutebrowser/ + $(UNSTOW_CMD) sxhkd/ + $(UNSTOW_CMD) tmux/ + $(UNSTOW_CMD) vim/ + +stow: process + $(STOW_CMD) X/ + $(STOW_CMD) alacritty/ + $(STOW_CMD) bash/ + $(STOW_CMD) bspwm/ + $(STOW_CMD) csh/ + $(STOW_CMD) gpg/ + $(STOW_CMD) i3/ + $(STOW_CMD) input/ + $(STOW_CMD) lemonbar/ + $(STOW_CMD) mbsync/ + $(STOW_CMD) msmtp/ + $(STOW_CMD) mutt/ + $(STOW_CMD) newsboat/ + $(STOW_CMD) qutebrowser/ + $(STOW_CMD) sxhkd/ + $(STOW_CMD) tmux/ + $(STOW_CMD) vim/ + +lemonbar: lemonbar/src/input.go lemonbar/bin/get_network_info.sh + cd lemonbar; make + +X: m4_defaults X/Xresources.m4 + cd X; make + +alacritty: m4_defaults alacritty/alacritty.m4 + cd alacritty; make + +m4_defaults: $(wildcard m4_defines/*.m4) + if test `hostname` = ursa-minor; then \ + ln -sf ./ursa_minor.m4 ./m4-defines/m4_defaults.m4; \ + elif test `hostname` = devon; then \ + ln -sf ./devon.m4 ./m4-defines/m4_defaults.m4; \ + else \ + ln -sf ./ursa_minor.m4 ./m4-defines/m4_defaults.m4; \ + fi + -- cgit v1.1