aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-01-04 23:38:38 +0530
committerArun Isaac2022-01-04 23:40:35 +0530
commite2e437acebca2946df6978d902542fe845d8de1d (patch)
tree0efc16cedd3627889ad6055bee50c982c5e3cb06
parent98890d26f305ddff3eb1c3b07ff77e5394357eb8 (diff)
downloadkolam-e2e437acebca2946df6978d902542fe845d8de1d.tar.gz
kolam-e2e437acebca2946df6978d902542fe845d8de1d.tar.lz
kolam-e2e437acebca2946df6978d902542fe845d8de1d.zip
Makefile: Build scm files.
* Makefile (GUILD, sources, objects): New variables. (all, %.go): New targets.
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1bfcc53..be43eb1 100644
--- a/Makefile
+++ b/Makefile
@@ -18,9 +18,16 @@
# <http://www.gnu.org/licenses/>.
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: