From 91c85c4ba4ec11cc5e6418ef4ab1020225fe9707 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Sun, 26 May 2024 23:38:33 -0500 Subject: [PATCH] Tweak system-file, add Makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’d hoped these tweaks to the system-file would help binary-making work with ECL, but no dice. Anyway, the Makefile has a basic build recipe and one for installing Quicklisp, should the user not already have it installed. --- Makefile | 20 ++++++++++++++++++++ eksd.asd | 12 +++++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 Makefile 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")))