aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArun Isaac2022-01-05 13:41:33 +0530
committerArun Isaac2022-01-05 13:41:33 +0530
commit152b6ad06b6138597e03effd70490fbec374f22e (patch)
tree885d823914fc8155a2f1655889211699d8fdf40e /Makefile
parent8eb8058405c1f0495d93a6789c1153a9d028cbd6 (diff)
downloadkolam-152b6ad06b6138597e03effd70490fbec374f22e.tar.gz
kolam-152b6ad06b6138597e03effd70490fbec374f22e.tar.lz
kolam-152b6ad06b6138597e03effd70490fbec374f22e.zip
Makefile: Abstract out project name.
* Makefile (project): New variable. (sources, scmdir, godir): Use project.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
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
# <http://www.gnu.org/licenses/>.
+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)