diff options
| author | Andrey Orst <andreyorst@gmail.com> | 2020-10-24 19:48:09 +0300 |
|---|---|---|
| committer | Andrey Orst <andreyorst@gmail.com> | 2020-10-24 19:48:09 +0300 |
| commit | 27cf03448e83ef983989ddac7b6a45f25d70ed42 (patch) | |
| tree | c527097c33a106bcc681c3c231b9bce75a5b2f01 | |
| parent | f0f4e9d0e57eb0f79f84b82a71217a05600247c5 (diff) | |
feature(maintenance): Added basic .gitignore and Makefile
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Makefile | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d907c43 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.lua 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" |