summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2020-11-21 10:14:09 +0000
committerAndrey Orst <andreyorst@gmail.com>2020-11-21 10:14:09 +0000
commitcbe6c9345514a6373a1c28f77b320cbe228c7c5e (patch)
treeb81e0e4ba4778e8734e6069ece4d6097df1431e0 /Makefile
parentdc7f076d4bd433c9857944cb2f756b0f07bc3db6 (diff)
parent0c4f5d25977c20bdc18fb193bb28c43b22641dc6 (diff)
Merge branch 'set-fixes' into 'master'
fix: improved set support See merge request andreyorst/fennel-cljlib!7
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index dca6dd8..6a313b8 100644
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,9 @@ LUASOURCES = $(FNLSOURCES:.fnl=.lua)
FNLTESTS = tests/fn.fnl tests/macros.fnl tests/core.fnl
LUATESTS = $(FNLTESTS:.fnl=.lua)
-.PHONY: all clean distclean help test luacov luacov-console
+.PHONY: build clean distclean help test luacov luacov-console fenneldoc
-all: $(LUASOURCES)
+build: $(LUASOURCES)
${LUASOURCES}: $(FNLSOURCES)
@@ -15,16 +15,16 @@ ${LUASOURCES}: $(FNLSOURCES)
$(FENNEL) --lua $(LUA) --compile $< > $@
clean:
- find . -type f -name '*.lua' | xargs rm -f
+ rm -f $(LUASOURCES) $(LUATESTS)
distclean: clean
rm -f luacov*
test: $(FNLTESTS)
- @$(foreach test, $?, $(FENNEL) --lua $(LUA) --metadata $(test);)
+ @true$(foreach test, $?, && $(FENNEL) --lua $(LUA) --metadata $(test))
-luacov: all $(LUATESTS)
- @$(foreach test, $(LUATESTS), $(LUA) -lluarocks.loader -lluacov $(test);)
+luacov: build $(LUATESTS)
+ @true$(foreach test, $(LUATESTS), && $(LUA) -lluarocks.loader -lluacov $(test))
luacov
luacov-console: luacov
@@ -32,6 +32,9 @@ luacov-console: luacov
luacov-console .
@$(foreach test, $(LUATESTS), mv $(test).tmp $(test);)
+fenneldoc:
+ fenneldoc cljlib.fnl cljlib-macros.fnl tests/test.fnl
+
help:
@echo "make -- run tests and create lua library" >&2
@echo "make test -- run tests" >&2