From 8e62f4667d2a4cc119469fe133fe82b4e3f56b0d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 4 Jan 2022 23:40:50 +0530 Subject: Makefile: Install scm and go files. * Makefile (scmdir, godir): New variables. (install): New target. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3