aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArun Isaac2022-01-05 15:51:33 +0530
committerArun Isaac2022-01-05 16:24:22 +0530
commitb85b48cf86d91ee0ff8ad6ea1aafcc7e79532049 (patch)
treee84b61da1b0360d7ff1ab4733c24e70fa2c37781 /Makefile
parent898e59dfa3db531542b556648d8ad029535886e3 (diff)
downloadkolam-b85b48cf86d91ee0ff8ad6ea1aafcc7e79532049.tar.gz
kolam-b85b48cf86d91ee0ff8ad6ea1aafcc7e79532049.tar.lz
kolam-b85b48cf86d91ee0ff8ad6ea1aafcc7e79532049.zip
Makefile: Abstract out test files.
* Makefile (tests): New variable. (check): Depend on tests.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d9c6c67..ae1b4ed 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,7 @@ EMACS = emacs
top_level_module_dir = $(project)
sources = $(wildcard $(top_level_module_dir)/*.scm)
objects = $(sources:.scm=.go)
+tests = $(wildcard tests/*.scm)
scmdir = $(datarootdir)/guile/site/$(guile_effective_version)/$(top_level_module_dir)
godir = $(libdir)/guile/$(guile_effective_version)/site-ccache/$(top_level_module_dir)
@@ -36,8 +37,8 @@ all: $(objects)
$(GUILD) compile -L . -o $@ $<
.PHONY: check install clean
-check:
- $(GUILE) -L . tests/parse.scm
+check: $(tests)
+ $(GUILE) -L . $^
install: $(sources) $(objects)
install -D $(sources) --target-directory $(scmdir)