From 4e8cfa36133c9be9f9a31a5e212d47f65651f93b Mon Sep 17 00:00:00 2001 From: soukev Date: Tue, 9 Jun 2026 11:03:36 +0200 Subject: Add testing --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f91b2aa --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +BIN := cl-mdns + +LISP := sbcl + +.PHONY: all run install uninstall clean test + +all: + $(LISP) --non-interactive \ + --eval '(ql:quickload :cl-mdns)' \ + --eval '(asdf:make :cl-mdns)' + +run: + @ ./bin/$(BIN) + +test: + sbcl --non-interactive \ + --eval '(asdf:load-system :cl-mdns)' \ + --eval '(asdf:test-system :cl-mdns)' + +install: + install -Dm755 ./bin/$(BIN) $(DESTDIR)/usr/local/bin/$(BIN) + +uninstall: + rm -f $(DESTDIR)/usr/local/bin/$(BIN) + +clean: uninstall + rm -f ./bin/$(BIN) -- cgit v1.2.3