build: Fix installation directories.
authorDavid Thompson <dthompson2@worcester.edu>
Tue, 16 Feb 2016 20:03:30 +0000 (15:03 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Tue, 16 Feb 2016 20:03:30 +0000 (15:03 -0500)
* Makefile.am: Use $GUILE_EFFECTIVE_VERSION to install modules to the
  correct place.

Makefile.am

index 191e28c..a0549db 100644 (file)
@@ -35,8 +35,8 @@ SUFFIXES = .scm .go
 .scm.go:
        $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
 
-moddir=$(prefix)/share/guile/site/2.0
-godir=$(libdir)/guile/2.0/ccache
+moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
+godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache
 
 SOURCES =                                      \
   syntax-highlight/utils.scm                   \