Add gensym and clean `or` macro to stepA of 19 implementations (part 3)
[jackhill/mal.git] / awk / Makefile
CommitLineData
8c7587af
MK
1
2TESTS =
3
4
5SOURCES_BASE = types.awk reader.awk printer.awk
6SOURCES_LISP = env.awk core.awk stepA_mal.awk
7SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
8
861da5d6
JM
9all: mal.awk
10
11mal.awk: $(SOURCES)
12 echo "#!/usr/bin/awk -f" > $@
13 cat $+ | grep -v "^@include " >> $@
14 chmod +x $@
15
8c7587af
MK
16
17.PHONY: stats tests $(TESTS)
18
19stats: $(SOURCES)
20 @wc $^
f15b4021 21 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
8c7587af
MK
22stats-lisp: $(SOURCES_LISP)
23 @wc $^
f15b4021 24 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
8c7587af
MK
25
26tests: $(TESTS)
27
28$(TESTS):
29 @echo "Running $@"; \
30 python $@ || exit 1; \