mirror of
https://github.com/kanaka/mal.git
synced 2024-11-13 11:23:59 +03:00
Common Lisp: Add tasks for stats and stats-lisp for Common Lisp implementation
This commit is contained in:
parent
4434be1d0a
commit
3cf68bd8ff
@ -1,4 +1,23 @@
|
||||
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)
|
||||
|
||||
all : stepA_mal
|
||||
|
||||
.PHONY: stats
|
||||
|
||||
|
||||
step% : step%.lisp utils.lisp types.lisp env.lisp printer.lisp reader.lisp core.lisp
|
||||
cl-launch -v -l sbcl +Q -S $(ROOT_DIR) -s $@ -d $@.image -o $@ -E 'mal:main'
|
||||
|
||||
clean:
|
||||
find . -name 'step*' -executable -exec git check-ignore \{\} \; -delete
|
||||
rm -f *.lib *.fas[l]
|
||||
|
||||
stats: $(SOURCES)
|
||||
@wc $^
|
||||
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*;|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
|
||||
|
||||
stats-lisp: $(SOURCES_LISP)
|
||||
@wc $^
|
||||
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*;|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
|
||||
|
Loading…
Reference in New Issue
Block a user