aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)