2014-03-25 01:32:24 +04:00
|
|
|
|
|
|
|
TESTS =
|
|
|
|
|
|
|
|
|
2014-04-11 04:27:42 +04:00
|
|
|
SOURCES_BASE = mal_readline.py mal_types.py reader.py printer.py
|
2015-02-28 20:09:54 +03:00
|
|
|
SOURCES_LISP = env.py core.py stepA_mal.py
|
2014-04-11 04:27:42 +04:00
|
|
|
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
|
|
|
|
|
2014-03-25 01:32:24 +04:00
|
|
|
|
|
|
|
#all: mal.sh
|
|
|
|
#
|
|
|
|
#mal.sh: $(SOURCES)
|
|
|
|
# cat $+ > $@
|
|
|
|
# echo "#!/bin/bash" > $@
|
|
|
|
# cat $+ | grep -v "^source " >> $@
|
|
|
|
# chmod +x $@
|
|
|
|
#
|
|
|
|
#clean:
|
|
|
|
# rm -f mal.sh
|
|
|
|
|
|
|
|
.PHONY: stats tests $(TESTS)
|
|
|
|
|
|
|
|
stats: $(SOURCES)
|
|
|
|
@wc $^
|
2014-04-11 04:27:42 +04:00
|
|
|
stats-lisp: $(SOURCES_LISP)
|
|
|
|
@wc $^
|
2014-03-25 01:32:24 +04:00
|
|
|
|
|
|
|
tests: $(TESTS)
|
|
|
|
|
|
|
|
$(TESTS):
|
|
|
|
@echo "Running $@"; \
|
|
|
|
python $@ || exit 1; \
|