From 27cf03448e83ef983989ddac7b6a45f25d70ed42 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Sat, 24 Oct 2020 19:48:09 +0300 Subject: feature(maintenance): Added basic .gitignore and Makefile --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2a462d7 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +FNLSOURCES = core.fnl +LUASOURCES = $(FNLSOURCES:.fnl=.lua) + +all: cljlib.lua + +.PHONY: all clean help test + +cljlib.lua: test $(LUASOURCES) + mv core.lua cljlib.lua + +%.lua: %.fnl + fennel --compile $^ > $@ + +clean: + rm -f *.lua + +test: + @fennel core_test.fnl + @fennel macros_test.fnl + +help: + @echo "make -- run tests and create lua library" + @echo "make test -- run tests" + @echo "make clean -- remove lua files" -- cgit v1.2.3