blob: 52a7a7d57aa6a123f1143a0f4baef93a4e6f97e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
TESTS = tests/types.mk tests/reader.mk tests/step9_interop.mk
SOURCES_BASE = util.mk readline.mk gmsl.mk types.mk reader.mk printer.mk
SOURCES_LISP = env.mk core.mk stepA_more.mk
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
mal.mk: $(SOURCES)
echo "#!/usr/bin/make -f" > $@
cat $+ | grep -v "^include " >> $@
chmod +x $@
clean:
rm -f mal.mk
.PHONY: stats tests $(TESTS)
stats: $(SOURCES)
@wc $^
stats-lisp: $(SOURCES_LISP)
@wc $^
tests: $(TESTS)
$(TESTS):
@echo "Running $@"; \
make -f $@ || exit 1; \
|