about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 32d4ca5..87618c1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,24 @@
+GUILD = guild
 RUN64 = guile-run64
 
+top_level_module_dir = dump
+sources = $(wildcard $(top_level_module_dir)/*.scm)
+objects = $(sources:.scm=.go)
+
+# Build
+
+all: $(objects)
+
+%.go: %.scm
+	$(GUILD) compile -L . -o $@ $<
+
+# Tests
+
 .PHONY: check
 check: tests.scm
 	GUILE_LOAD_PATH=$(GUILE_LOAD_PATH):. $(RUN64) $^
+
+# Clean
+
+clean:
+	rm -f $(objects)