flora-search-aurora/Makefile
Jaidyn Ann 63e31ef4f8 Compress maps by _a bunch_!
Look at these gains:
  672K    old-outdoors.tmx.lisp
  264K    new-outdoors.tmx.lisp
2023-07-07 10:40:43 -05:00

35 lines
831 B
Makefile

LISP ?= sbcl
SWANK ?= ${HOME}/.config/emacs/elpa/slime-20221206.26/swank-loader.lisp
USE_SWANK ?= no
fonts:
$(LISP) \
--load "res/fonts/flf→lisp.lisp"
maps:
$(LISP) \
--load "res/maps/tmx→lisp.lisp"
sed -i 's%:LANG NIL%%g' res/maps/*.tmx.lisp
sed -i 's%^[ ]*%%' res/maps/*.tmx.lisp
sed -i 's%) (%)(%g' res/maps/*.tmx.lisp
build: maps fonts
$(LISP) \
--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