Tweak system-file, add Makefile

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.
This commit is contained in:
Jaidyn Ann 2024-05-26 23:38:33 -05:00
parent d995df4ac7
commit 91c85c4ba4
2 changed files with 29 additions and 3 deletions

20
Makefile Normal file
View File

@ -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)'

View File

@ -1,4 +1,6 @@
(defsystem "eksd" (require "asdf")
(asdf:defsystem "eksd"
:version "0.11" :version "0.11"
:license "GPLv3" :license "GPLv3"
:author "Jaidyn Ann <jadedctrl@posteo.at>" :author "Jaidyn Ann <jadedctrl@posteo.at>"
@ -7,11 +9,15 @@
:depends-on () :depends-on ()
:components ((:file "src/eksd"))) :components ((:file "src/eksd")))
(defsystem "eksd.unix" (asdf:defsystem "eksd.unix"
:version "0.11" :version "0.11"
:license "GPLv3" :license "GPLv3"
:author "Jaidyn Ann <jadedctrl@posteo.at>" :author "Jaidyn Ann <jadedctrl@posteo.at>"
:homepage "https://hak.xwx.moe/jadedctrl/eksd" :homepage "https://hak.xwx.moe/jadedctrl/eksd"
:description "UNIX terminal front-tend to eksd. `xxd` twin." :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"))) :components ((:file "src/unix")))