From b68701e2def4eb56df367f484d43201c5479e19d Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Thu, 15 Jan 2026 23:00:26 +0100 Subject: feat: replace install script with Makefile --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e64860e --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +PROGRAMS = dwm dmenu slstatus st fetcha + +default: + @echo "Available jobs:" + @printf "\tinstall: installs all included suckless programs\n" + @printf "\tinstall-laptop: installs all included suckless programs \ + with the laptop config changes applied\n" + @printf "\twallpaper: uses feh to set the wallpaper\n" + +install: + for prog in $(PROGRAMS); do make -C $$prog clean install; done + cp picom.conf /etc/xdg/picom.conf + +install-laptop: + git apply laptop.diff + $(MAKE) install + git restore . + +wallpaper: + feh --bg-fill $(shell pwd)/wallpaper.jpg || true + @echo 'Creating ~/.fehbg' + echo '#!/bin/sh' > $(HOME)/.fehbg + echo 'feh --no-fehbg --bg-fill $(shell pwd)/wallpaper.jpg' > $(HOME)/.fehbg + chmod 755 $(HOME)/.fehbg + +.PHONY: default install install-laptop wallpaper -- cgit v1.2.3