mirror of
https://github.com/kanaka/mal.git
synced 2024-11-10 12:47:45 +03:00
22 lines
599 B
Makefile
22 lines
599 B
Makefile
SOURCES_BASE = utils.lisp types.lisp reader.lisp printer.lisp
|
|
SOURCES_LISP = env.lisp core.lisp stepA_mal.lisp
|
|
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
|
|
|
|
all : stepA_mal.fas
|
|
|
|
.PHONY: stats
|
|
|
|
step%.fas : step%.lisp dependencies.lisp utils.lisp types.lisp env.lisp printer.lisp reader.lisp core.lisp
|
|
clisp -q -c $<
|
|
|
|
clean:
|
|
rm *.fas *.lib
|
|
|
|
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]"
|