diff options
| author | Andrey Orst <andreyorst@gmail.com> | 2020-11-21 10:14:09 +0000 |
|---|---|---|
| committer | Andrey Orst <andreyorst@gmail.com> | 2020-11-21 10:14:09 +0000 |
| commit | cbe6c9345514a6373a1c28f77b320cbe228c7c5e (patch) | |
| tree | b81e0e4ba4778e8734e6069ece4d6097df1431e0 /Makefile | |
| parent | dc7f076d4bd433c9857944cb2f756b0f07bc3db6 (diff) | |
| parent | 0c4f5d25977c20bdc18fb193bb28c43b22641dc6 (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-- | Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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 |