From e2e437acebca2946df6978d902542fe845d8de1d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 4 Jan 2022 23:38:38 +0530 Subject: Makefile: Build scm files. * Makefile (GUILD, sources, objects): New variables. (all, %.go): New targets. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1bfcc53..be43eb1 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,16 @@ # . GUILE = guile +GUILD = guild EMACS = emacs -all: ; +sources = $(wildcard kolam/*.scm) +objects = $(sources:.scm=.go) + +all: $(objects) + +%.go: %.scm + $(GUILD) compile -L . -o $@ $< .PHONY: check check: -- cgit v1.2.3