aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-01-05 15:31:22 +0530
committerArun Isaac2022-01-05 15:31:22 +0530
commit8945df6697ce1be5bbab0a752e8ddc440f96d2c3 (patch)
treec6f400a9169db370762ea33ed92d6c1d9ff3c03e
parentd9a5f8c13f123d0d5479b9a1100d05de46c00006 (diff)
downloadkolam-8945df6697ce1be5bbab0a752e8ddc440f96d2c3.tar.gz
kolam-8945df6697ce1be5bbab0a752e8ddc440f96d2c3.tar.lz
kolam-8945df6697ce1be5bbab0a752e8ddc440f96d2c3.zip
Makefile: Differentiate project name and top level module directory.
* Makefile (top_level_module_dir): New variable. (sources, scmdir, godir): Use top_level_module_dir instead of project.
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index feee967..aed14f2 100644
--- a/Makefile
+++ b/Makefile
@@ -25,11 +25,12 @@ GUILE = guile
GUILD = guild
EMACS = emacs
-sources = $(wildcard $(project)/*.scm)
+top_level_module_dir = $(project)
+sources = $(wildcard $(top_level_module_dir)/*.scm)
objects = $(sources:.scm=.go)
-scmdir = $(datarootdir)/guile/site/$(guile_effective_version)/$(project)
-godir = $(libdir)/guile/$(guile_effective_version)/site-ccache/$(project)
+scmdir = $(datarootdir)/guile/site/$(guile_effective_version)/$(top_level_module_dir)
+godir = $(libdir)/guile/$(guile_effective_version)/site-ccache/$(top_level_module_dir)
all: $(objects)