about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 16 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index aba1a35..ee8e364 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,15 +44,16 @@ 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
 
 scmdir = $(datarootdir)/guile/site/$(guile_effective_version)
 godir = $(libdir)/guile/$(guile_effective_version)/site-ccache
 
-.PHONY: all clean install
+.PHONY: all clean install ares
 
 all: $(objects) $(config_file)
 
@@ -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)
@@ -91,3 +91,6 @@ $(dist_archive): .git/refs/heads/main
 
 clean:
 	rm -f $(objects) $(config_file)
+
+ares:
+	./pre-inst-env $(GUILE) -c '(begin (use-modules (guix gexp)) ((@ (ares server) run-nrepl-server)))'