diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 27 |
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) |
