From b85b48cf86d91ee0ff8ad6ea1aafcc7e79532049 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 5 Jan 2022 15:51:33 +0530 Subject: Makefile: Abstract out test files. * Makefile (tests): New variable. (check): Depend on tests. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3