diff options
| author | Christopher R. Nelson <christopher.nelson@languidnights.com> | 2026-10-31 23:51:41 -0400 |
|---|---|---|
| committer | Christopher R. Nelson <christopher.nelson@languidnights.com> | 2026-10-31 23:51:41 -0400 |
| commit | 0bca7a7eb09f0e094aa721f75d23f771d20c6bf3 (patch) | |
| tree | 380f0f0d02a504e00bcbdb9c13ca3ba25ca370dc /Makefile | |
Initial wallpaper-switcher pipe menu
Common Lisp tool that prints an Openbox pipe menu of the .png/.webp
files in ~/.wallpapers, with each item setting the wallpaper via swaybg.
Directory, command template and extensions are configurable through
~/.config/wallpaper-switcher/config or command-line options.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5d95742 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +LISP ?= sbcl +PREFIX ?= $(HOME)/.local +SBCL = $(LISP) --non-interactive --no-userinit \ + --eval '(require "asdf")' \ + --eval '(asdf:initialize-source-registry (quote (:source-registry (:directory "$(CURDIR)/") :inherit-configuration)))' + +.PHONY: all build test install clean + +all: build + +build: wallpaper-switcher + +wallpaper-switcher: wallpaper-switcher.asd $(wildcard src/*.lisp) + $(SBCL) --eval '(asdf:make "wallpaper-switcher")' + +test: + $(SBCL) --eval '(asdf:test-system "wallpaper-switcher")' + +install: wallpaper-switcher + install -Dm755 wallpaper-switcher $(PREFIX)/bin/wallpaper-switcher + +clean: + rm -f wallpaper-switcher |
