aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: c0cbc9bacdf2a80cd1b8944e21bb35bb5ac6bfa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
	GUILE_AUTO_COMPILE=0 $(GUILD) compile -L . -o $@ $<

# Tests

.PHONY: check
check: tests.scm
	GUILE_LOAD_PATH=$(GUILE_LOAD_PATH):. $(RUN64) $^

# Clean

clean:
	rm -f $(objects)