diff options
| author | Andrey Orst <andreyorst@gmail.com> | 2020-10-30 22:05:25 +0300 |
|---|---|---|
| committer | Andrey Orst <andreyorst@gmail.com> | 2020-10-30 22:05:25 +0300 |
| commit | f0711feb917487bba4310f6419116693966b6e79 (patch) | |
| tree | b10e8ad23506b6f682513bcc2f4bf28588f2d2ef | |
| parent | fe9c621140eedabecee11d6ff29f7e63fa747e15 (diff) | |
feature: rebuild project when macros files change
| -rw-r--r-- | .depend.mk | 3 | ||||
| -rw-r--r-- | Makefile | 9 |
2 files changed, 10 insertions, 2 deletions
diff --git a/.depend.mk b/.depend.mk new file mode 100644 index 0000000..72048aa --- /dev/null +++ b/.depend.mk @@ -0,0 +1,3 @@ +core.lua: core.fnl macros/core.fnl macros/fn.fnl +core_test.lua: core_test.fnl macros/core.fnl macros/fn.fnl +macros_test.lua: macros_test.fnl macros/core.fnl macros/fn.fnl @@ -13,9 +13,12 @@ ${LUASOURCES}: $(FNLSOURCES) fennel --lua $(LUA) --compile $< > $@ clean: - rm -f *.lua luacov* + rm -f *.lua -test: +clean-all: clean + rm -f luacov* + +test: clean @fennel --lua $(LUA) core_test.fnl @fennel --lua $(LUA) macros_test.fnl @@ -39,3 +42,5 @@ help: @echo "make luacov -- build coverage report (requires working tests)" >&2 @echo "make luacov-console -- build coverage report (requires working tests)" >&2 @echo "make help -- print this message and exit" >&2 + +-include .depend.mk |