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