aboutsummaryrefslogtreecommitdiff
GUILD = guild
GUILE = guile

top_level_module_dir = transform
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):. $(GUILE) $^

# Clean

clean:
	rm -f $(objects)