aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
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