Add `make run` with SWANK, how fancy!

This commit is contained in:
Jaidyn Ann 2023-07-02 13:16:07 -05:00
parent ff129f2d7a
commit b1e910290b
2 changed files with 16 additions and 3 deletions

View File

@ -1,4 +1,6 @@
LISP ?= ecl LISP ?= ecl
SWANK ?= ${HOME}/.config/emacs/elpa/slime-20221206.26/swank-loader.lisp
USE_SWANK ?= no
fonts: fonts:
$(LISP) \ $(LISP) \
@ -12,3 +14,17 @@ build:
--eval '(ql:quickload :flora-search-aurora)' \ --eval '(ql:quickload :flora-search-aurora)' \
--eval '(asdf:make :flora-search-aurora)' \ --eval '(asdf:make :flora-search-aurora)' \
--eval '(quit)' --eval '(quit)'
run:
ifeq ($(USE_SWANK),yes)
$(LISP) \
--eval '(ql:quickload :flora-search-aurora)' \
--eval '(load "$(SWANK)")' \
--eval '(swank-loader:init)' \
--eval "(swank:create-server :dont-close 't)" \
--eval '(flora-search-aurora:main)'
else
$(LISP) \
--eval '(ql:quickload :flora-search-aurora)' \
--eval '(flora-search-aurora:main)'
endif

View File

@ -1,3 +0,0 @@
(ql:quickload :flora-search-aurora)
(load "res/maps/casino.tmx.lisp")
(flora-search-aurora:main)