diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..59e82ad --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +LISP ?= sbcl + +all: clean build + +clean: + -rm eksd + +quicklisp: + curl "https://beta.quicklisp.org/quicklisp.lisp" -o /tmp/ql.lisp + $(LISP) --load /tmp/ql.lisp \ + --eval '(quicklisp-quickstart:install :path "~/.local/lib/quicklisp/")' \ + --eval '(ql:add-to-init-file)' \ + --eval '(quit)' + +build: + $(LISP) --load eksd.asd \ + --eval '(ql:quickload :eksd)' \ + --eval '(ql:quickload :eksd.unix)' \ + --eval '(asdf:make :eksd.unix)' \ + --eval '(quit)' diff --git a/eksd.asd b/eksd.asd index 51156a6..1e4a0d2 100644 --- a/eksd.asd +++ b/eksd.asd @@ -1,4 +1,6 @@ -(defsystem "eksd" +(require "asdf") + +(asdf:defsystem "eksd" :version "0.11" :license "GPLv3" :author "Jaidyn Ann " @@ -7,11 +9,15 @@ :depends-on () :components ((:file "src/eksd"))) -(defsystem "eksd.unix" +(asdf:defsystem "eksd.unix" :version "0.11" :license "GPLv3" :author "Jaidyn Ann " :homepage "https://hak.xwx.moe/jadedctrl/eksd" :description "UNIX terminal front-tend to eksd. `xxd` twin." - :depends-on (:eksd :unix-opts :cl-strings) + :class asdf:program-system + :build-operation "program-op" + :build-pathname "eksd" + :entry-point "eksd.unix:main" + :depends-on (:cl-strings :eksd :unix-opts) :components ((:file "src/unix")))