mirror of
https://github.com/kanaka/mal.git
synced 2024-09-20 18:18:51 +03:00
f15b4021db
- Put guile into correct alphabetical order.
34 lines
652 B
Makefile
34 lines
652 B
Makefile
|
|
TESTS =
|
|
|
|
|
|
SOURCES_BASE = mal_readline.py mal_types.py reader.py printer.py
|
|
SOURCES_LISP = env.py core.py stepA_mal.py
|
|
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
|
|
|
|
all: mal.py
|
|
true
|
|
|
|
mal.py: stepA_mal.py
|
|
echo "#!/usr/bin/env python" > $@
|
|
cat $+ >> $@
|
|
chmod +x $@
|
|
|
|
clean:
|
|
rm -f mal.py
|
|
|
|
.PHONY: stats tests $(TESTS)
|
|
|
|
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]"
|
|
|
|
tests: $(TESTS)
|
|
|
|
$(TESTS):
|
|
@echo "Running $@"; \
|
|
python $@ || exit 1; \
|