2015-01-03 08:20:00 +03:00
|
|
|
SOURCES_BASE = types.rkt reader.rkt printer.rkt
|
2015-02-28 20:09:54 +03:00
|
|
|
SOURCES_LISP = env.rkt core.rkt stepA_mal.rkt
|
2015-01-03 08:20:00 +03:00
|
|
|
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
2016-02-18 09:33:19 +03:00
|
|
|
dist: mal
|
|
|
|
|
|
|
|
mal: $(SOURCES)
|
|
|
|
raco exe stepA_mal.rkt
|
|
|
|
mv stepA_mal $@
|
|
|
|
|
|
|
|
clean:
|
2016-02-24 09:45:40 +03:00
|
|
|
rm -f mal
|
2016-02-18 09:33:19 +03:00
|
|
|
|
2015-01-03 08:20:00 +03:00
|
|
|
.PHONY: stats
|
|
|
|
|
|
|
|
stats: $(SOURCES)
|
|
|
|
@wc $^
|
2015-10-27 06:33:49 +03:00
|
|
|
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*;|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
|
2015-01-03 08:20:00 +03: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]"
|