2014-04-15 08:04:48 +04:00
|
|
|
TESTS =
|
|
|
|
|
2014-04-18 07:23:07 +04:00
|
|
|
SOURCES_BASE = mal_readline.rb types.rb reader.rb printer.rb
|
2015-02-28 20:09:54 +03:00
|
|
|
SOURCES_LISP = env.rb core.rb stepA_mal.rb
|
2014-04-15 08:04:48 +04:00
|
|
|
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
|
|
|
|
|
|
|
|
#all: mal.rb
|
|
|
|
|
|
|
|
.PHONY: stats tests $(TESTS)
|
|
|
|
|
|
|
|
stats: $(SOURCES)
|
|
|
|
@wc $^
|
2015-10-27 06:33:49 +03:00
|
|
|
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
|
2014-04-15 08:04:48 +04:00
|
|
|
stats-lisp: $(SOURCES_LISP)
|
|
|
|
@wc $^
|
2015-10-27 06:33:49 +03:00
|
|
|
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
|
2014-04-15 08:04:48 +04:00
|
|
|
|
|
|
|
tests: $(TESTS)
|
|
|
|
|
|
|
|
$(TESTS):
|
|
|
|
@echo "Running $@"; \
|
|
|
|
ruby $@ || exit 1; \
|