endef
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
-SOURCES_LISP := env.lisp core.lisp stepA_mal.lisp
-SOURCES := utils.lisp types.lisp reader.lisp printer.lisp $(SOURCES_LISP)
+SOURCES_LISP := src/env.lisp src/core.lisp src/stepA_mal.lisp
+SOURCES := src/utils.lisp src/types.lisp src/reader.lisp src/printer.lisp $(SOURCES_LISP)
LISP ?= sbcl
ABCL ?= abcl
# directory of the CL_LAUNCH_FILE in --wrap script so that the script can find the dumped
# image even if invoked from some directory different from where it
# currently resides
-step% : step%.lisp utils.lisp types.lisp env.lisp printer.lisp reader.lisp core.lisp hist/%_impl
+step% : src/step%.lisp src/utils.lisp src/types.lisp src/env.lisp src/printer.lisp src/reader.lisp src/core.lisp hist/%_impl
ifeq ($(LISP),abcl)
echo -n '#!/bin/sh\ncd `dirname $$0` ; $(ABCL) --noinform --noinit --nosystem --load run-abcl.lisp -- $@ $$@' > $@
chmod +x $@
:description "Implementation of step 0 of MAL in Common Lisp"
:serial t
:components ((:file "step0_repl"))
- :depends-on (:uiop :cl-readline))
+ :depends-on (:uiop :cl-readline)
+ :pathname "src/")
(:file "reader")
(:file "printer")
(:file "step1_read_print"))
- :depends-on (:uiop :cl-readline :cl-ppcre :genhash))
+ :depends-on (:uiop :cl-readline :cl-ppcre :genhash)
+ :pathname "src/")
(:file "reader")
(:file "printer")
(:file "step2_eval"))
- :depends-on (:uiop :cl-readline :cl-ppcre :genhash))
+ :depends-on (:uiop :cl-readline :cl-ppcre :genhash)
+ :pathname "src/")
(:file "reader")
(:file "printer")
(:file "step3_env"))
- :depends-on (:uiop :cl-readline :cl-ppcre :genhash))
+ :depends-on (:uiop :cl-readline :cl-ppcre :genhash)
+ :pathname "src/")
(:file "printer")
(:file "core")
(:file "step4_if_fn_do"))
- :depends-on (:uiop :cl-readline :cl-ppcre :genhash))
+ :depends-on (:uiop :cl-readline :cl-ppcre :genhash)
+ :pathname "src/")
(:file "printer")
(:file "core")
(:file "step5_tco"))
- :depends-on (:uiop :cl-readline :cl-ppcre :genhash))
+ :depends-on (:uiop :cl-readline :cl-ppcre :genhash)
+ :pathname "src/")
(:file "printer")
(:file "core")
(:file "step6_file"))
- :depends-on (:uiop :cl-readline :cl-ppcre :genhash))
+ :depends-on (:uiop :cl-readline :cl-ppcre :genhash)
+ :pathname "src/")
(:file "printer")
(:file "core")
(:file "step7_quote"))
- :depends-on (:uiop :cl-readline :cl-ppcre :genhash))
+ :depends-on (:uiop :cl-readline :cl-ppcre :genhash)
+ :pathname "src/")
(:file "printer")
(:file "core")
(:file "step8_macros"))
- :depends-on (:uiop :cl-readline :cl-ppcre :genhash))
+ :depends-on (:uiop :cl-readline :cl-ppcre :genhash)
+ :pathname "src/")
(:file "printer")
(:file "core")
(:file "step9_try"))
- :depends-on (:uiop :cl-readline :cl-ppcre :genhash))
+ :depends-on (:uiop :cl-readline :cl-ppcre :genhash)
+ :pathname "src/")
(:file "printer")
(:file "core")
(:file "stepA_mal"))
- :depends-on (:uiop :cl-readline :cl-ppcre :genhash))
+ :depends-on (:uiop :cl-readline :cl-ppcre :genhash)
+ :pathname "src/")