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)