Install modules to correct directory based on Guile version.
authorDavid Thompson <dthompson2@worcester.edu>
Thu, 11 Feb 2016 00:40:33 +0000 (19:40 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Thu, 11 Feb 2016 00:40:33 +0000 (19:40 -0500)
Makefile.am

index d273093..5428b13 100644 (file)
@@ -37,8 +37,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 =                                      \
   sdl2.scm                                     \