1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 18:48:12 +03:00
mal/make/Makefile
Joel Martin 90f618cbe7 All: rename stepA_interop to stepA_mal
Also, add missed postscript interop tests.
2015-02-28 11:09:54 -06:00

29 lines
538 B
Makefile

TESTS = tests/types.mk tests/reader.mk tests/stepA_mal.mk
SOURCES_BASE = util.mk numbers.mk readline.mk gmsl.mk types.mk \
reader.mk printer.mk
SOURCES_LISP = env.mk core.mk stepA_mal.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; \