From 8945df6697ce1be5bbab0a752e8ddc440f96d2c3 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 5 Jan 2022 15:31:22 +0530 Subject: 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. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3