aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-03-04 00:48:52 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-03-04 13:08:39 +0100
commit45de89eb99acb2631f81dda72080245c5a17e729 (patch)
treea5386308f18e9bba16f9724f871c68b22239c946 /Makefile
parentExplicitly format unbound-variable errors. (diff)
downloadcalp-45de89eb99acb2631f81dda72080245c5a17e729.tar.gz
calp-45de89eb99acb2631f81dda72080245c5a17e729.tar.xz
Tests now use our local compiled files.
Previously there was a bunch of errors with the tests, where they tried to compile everything automatically, which usually went rather poorly due to it being in --debug mode.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 182cdc8d..5144c888 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ GUILE_C_FLAGS = -Lmodule \
-Wmacro-use-before-definition -Warity-mismatch \
-Wduplicate-case-datum -Wbad-case-datum
-all: $(GO_FILES) README static
+all: go_files README static
static:
$(MAKE) -C static
@@ -23,8 +23,10 @@ obj/%.go: module/%.scm
@echo guild compile $<
@guild compile $(GUILE_C_FLAGS) -o $@ $<
+go_files: $(GO_FILES)
+
clean:
- $(MAKE) -C static clean
+ -$(MAKE) -C static clean
-rm -r obj
install: all
@@ -40,7 +42,7 @@ install: all
README: README.in
./main text < README.in | sed "s/<<today>>/`date -I`/" > README
-test:
+test: go_files
tests/run-tests.scm
$(MAKE) coverage