aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5fa3c06..2fcba66 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,9 @@ EMACS = emacs
sources = $(wildcard kolam/*.scm)
objects = $(sources:.scm=.go)
+scmdir = $(datarootdir)/guile/site/$(guile_effective_version)/kolam
+godir = $(libdir)/guile/$(guile_effective_version)/site-ccache/kolam
+
all: $(objects)
%.go: %.scm
@@ -35,6 +38,13 @@ all: $(objects)
check:
$(GUILE) -L . tests/parse.scm
+.PHONY: install
+install: $(sources) $(objects)
+ mkdir -p $(scmdir)
+ mkdir -p $(godir)
+ install $(sources) $(scmdir)
+ install $(objects) $(godir)
+
website: website/index.html
website/index.html: README.org build-aux/build-home-page.el