aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-01-04 23:40:50 +0530
committerArun Isaac2022-01-04 23:40:50 +0530
commit8e62f4667d2a4cc119469fe133fe82b4e3f56b0d (patch)
tree9f0c232b9cc811126c9324017d2dd92c3b261fbe
parent910f7405950a0aef98e4c58594867675ba48213b (diff)
downloadkolam-8e62f4667d2a4cc119469fe133fe82b4e3f56b0d.tar.gz
kolam-8e62f4667d2a4cc119469fe133fe82b4e3f56b0d.tar.lz
kolam-8e62f4667d2a4cc119469fe133fe82b4e3f56b0d.zip
Makefile: Install scm and go files.
* Makefile (scmdir, godir): New variables. (install): New target.
-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