From b1e910290b27de13f4a49e929f0350e78273fd2e Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Sun, 2 Jul 2023 13:16:07 -0500 Subject: [PATCH] Add `make run` with SWANK, how fancy! --- Makefile | 16 ++++++++++++++++ run.lisp | 3 --- 2 files changed, 16 insertions(+), 3 deletions(-) delete mode 100644 run.lisp diff --git a/Makefile b/Makefile index 31f265f..7cf7db6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ LISP ?= ecl +SWANK ?= ${HOME}/.config/emacs/elpa/slime-20221206.26/swank-loader.lisp +USE_SWANK ?= no fonts: $(LISP) \ @@ -12,3 +14,17 @@ build: --eval '(ql:quickload :flora-search-aurora)' \ --eval '(asdf:make :flora-search-aurora)' \ --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 diff --git a/run.lisp b/run.lisp deleted file mode 100644 index 1720c4d..0000000 --- a/run.lisp +++ /dev/null @@ -1,3 +0,0 @@ -(ql:quickload :flora-search-aurora) -(load "res/maps/casino.tmx.lisp") -(flora-search-aurora:main)