about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 12 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index aba1a35..c70af5c 100644
--- a/Makefile
+++ b/Makefile
@@ -17,15 +17,16 @@
 # along with ravanan.  If not, see <https://www.gnu.org/licenses/>.
 
 project = ravanan
-version = 0.1.0
+version = 0.2.0
 
-GIT ?= git
-GPG ?= gpg
-GUILD ?= guild
-GUILE ?= guile
-LZIP ?= lzip
-NODE ?= node
-SED ?= sed
+GIT = git
+GPG = gpg
+GUILD = guild
+GUILE = guile
+GUILE_RUN64 = guile-run64
+LZIP = lzip
+NODE = node
+SED = sed
 
 prefix ?= /usr/local
 bindir ?= $(prefix)/bin
@@ -43,8 +44,9 @@ sources = $(filter-out $(config_file), \
 objects = $(sources:.scm=.go) $(config_file:.scm=.go)
 scripts = $(wildcard bin/*)
 tests = $(wildcard tests/*.scm) $(wildcard tests/work/*.scm)
+test_data = $(wildcard test-data/*)
 distribute_files = $(sources) $(config_file_template) $(scripts) \
-                   $(tests) pre-inst-env guix.scm \
+                   $(tests) $(test_data) pre-inst-env guix.scm \
                    .guix/ravanan-package.scm Makefile \
                    COPYING README.md
 
@@ -62,9 +64,7 @@ all: $(objects) $(config_file)
 	GUILE_AUTO_COMPILE=0 $(GUILD) compile -L . -o $@ $<
 
 check:
-	for test in $(tests); do \
-		$(GUILE) --no-auto-compile -L . $$test; \
-	done
+	./pre-inst-env $(GUILE_RUN64) $(tests)
 
 install: $(sources) $(config_file) $(objects) $(scripts)
 	install -D $(scripts) --target-directory $(bindir)