From 0c4f5d25977c20bdc18fb193bb28c43b22641dc6 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Sat, 21 Nov 2020 10:14:09 +0000 Subject: fix: update ordered when removing items. WIP: for unordered set --- Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3