blob: 5d95742d6ca9b57a65e8727a432dbc7129b09b28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|