summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2020-10-30 22:05:25 +0300
committerAndrey Orst <andreyorst@gmail.com>2020-10-30 22:05:25 +0300
commitf0711feb917487bba4310f6419116693966b6e79 (patch)
treeb10e8ad23506b6f682513bcc2f4bf28588f2d2ef /Makefile
parentfe9c621140eedabecee11d6ff29f7e63fa747e15 (diff)
feature: rebuild project when macros files change
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1d31dd1..fa4553c 100644
--- a/Makefile
+++ b/Makefile
@@ -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