From 152b6ad06b6138597e03effd70490fbec374f22e Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 5 Jan 2022 13:41:33 +0530 Subject: Makefile: Abstract out project name. * Makefile (project): New variable. (sources, scmdir, godir): Use project. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7268b8b..feee967 100644 --- a/Makefile +++ b/Makefile @@ -17,17 +17,19 @@ # License along with kolam. If not, see # . +project = kolam + include Makefile.include GUILE = guile GUILD = guild EMACS = emacs -sources = $(wildcard kolam/*.scm) +sources = $(wildcard $(project)/*.scm) objects = $(sources:.scm=.go) -scmdir = $(datarootdir)/guile/site/$(guile_effective_version)/kolam -godir = $(libdir)/guile/$(guile_effective_version)/site-ccache/kolam +scmdir = $(datarootdir)/guile/site/$(guile_effective_version)/$(project) +godir = $(libdir)/guile/$(guile_effective_version)/site-ccache/$(project) all: $(objects) -- cgit v1.2.3