summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsoukev <soukev@soukev.xyz>2026-06-09 11:03:36 +0200
committersoukev <soukev@soukev.xyz>2026-06-09 11:03:36 +0200
commit4e8cfa36133c9be9f9a31a5e212d47f65651f93b (patch)
treed8120e372443bd5f7302b999b330ef032d7974aa /Makefile
parent3692466424e33278e22faaa8c0c3ae61ac95ffd5 (diff)
Add testingHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
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)